Skip to content

Instantly share code, notes, and snippets.

View gpbaculio's full-sized avatar

Glendon Philipp Baculio gpbaculio

  • Zone 3, Poblacion El Salvador City, Misamis Oriental
View GitHub Profile
@linchpinstudios
linchpinstudios / fabric.arrow.js
Last active December 25, 2023 18:27
Fabric JS Arrow
fabric.Arrow = fabric.util.createClass(fabric.Line, {
type: 'Arrow',
initialize: function(element, options) {
options || (options = {});
this.callSuper('initialize', element, options);
},
toObject: function() {
@amazingandyyy
amazingandyyy / SES.sample.js
Last active May 25, 2021 13:04
AWS SES(simple email service) API (NodeJS snippet)
// To send email with AWS Simple Email Service(SES) API in Node.js.
/*----------------------Sample codes----------------------*/
// .env
// AWS_KEY='AKAMTCsample2FUUQ'
// AWS_SECRET='4RsVEfTBJudFA9/pyFnjPvFsampleCbfq69bRV'
// AWS_IAM_NAME='IAM_NAME'
// AWS_SES_SENDER='email@aws.com'
@fta2012
fta2012 / DragTransform
Last active May 1, 2024 21:15
Slightly modified compiled coffeescript from this codepen: http://codepen.io/fta/pen/ifnqH. Paste into console on a page that has jQuery to load the two dependent libraries (jquery-ui and numericjs). Then call makeTransformable('#selector-name') to make that element WYSIWYG editable. Use inspector to get the CSS for the transforms.
var selector = 'img' // Replace this with the selector for the element you want to make transformable
jQuery.getScript('//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js', function() {
jQuery.getScript('//cdnjs.cloudflare.com/ajax/libs/numeric/1.2.6/numeric.min.js', function() {
(function() {
var $, applyTransform, getTransform, makeTransformable;
$ = jQuery;