Skip to content

Instantly share code, notes, and snippets.

View mindofjonas's full-sized avatar
🎯
Focusing

Jonas Fleur-Aime mindofjonas

🎯
Focusing
View GitHub Profile
@mindofjonas
mindofjonas / fabric-js-canvas-drag-zoom-and-pinch-for-mouse-and-touch.markdown
Created November 16, 2025 06:07
Fabric.js Canvas Drag, Zoom and Pinch for Mouse and Touch

Fabric.js Canvas Drag, Zoom and Pinch for Mouse and Touch

This demo is based on another Fabric.js pen comparing drag and zoom performance using native functions and CSS transform.

This pen is the subsequent development of that comparison with the following changes:

  • dragging now only uses CSS transform
  • all events triggering method calls are throttled and debounced using Lodash
  • the canvas can't be dragged outside of the viewable area
@mindofjonas
mindofjonas / index.html
Created July 14, 2017 00:32
Vuejs SSFCRUD - Search Sort Filter Create Read Update Delete
<html lang="vi">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Tôn Cường - The simple tutorial Vuejs</title>
<link rel="stylesheet" href="assets/css/normalize.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="assets/css/style.css">
@mindofjonas
mindofjonas / edit-post-messages-remove-view-post.php
Last active September 11, 2015 21:48
Edit Post Messages + Remove "View Post" link from WordPress Custom Post Type
/*
* Edit Post Messages for WordPress Custom Post Type
* Replace POST_TYPE_NAME with post type. Ex: films, movies, gallery
* Replace Post_Type_Name with proper name of post type. Ex: Films, Movies, Gallery
*/
add_filter('post_updated_messages', 'post_type_updated_messages');
function post_type_updated_messages( $messages ) {
$messages['POST_TYPE_NAME'] = array( //Specify the built in or custom post type