Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am changalberto on github.
* I am changalberto (https://keybase.io/changalberto) on keybase.
* I have a public key ASBNglBvpcQtrt5u0KaXQpSGl4F9VNnXwgv8noq9-jiQ0wo
To claim this, I am signing this object:
property debug : false
-- when the toolbar script icon is clicked
--
on run
tell application "Finder"
try
set this_folder to (the target of the front window) as alias
on error
set this_folder to startup disk
end try
property debug : false
-- when the toolbar script icon is clicked
--
on run
tell application "Finder"
try
set this_folder to (the target of the front window) as alias
on error
set this_folder to startup disk
end try
@changalberto
changalberto / gulp.js
Created March 5, 2015 04:20
Sample Config
/* jshint node:true */
'use strict';
// generated on 2015-02-12 using generator-gulp-webapp 0.2.0
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
gulp.task('styles', function () {
return gulp.src('app/styles/main.scss')
.pipe($.plumber())
.pipe($.rubySass({
@changalberto
changalberto / jquery.event.clickout
Created September 16, 2014 21:13
Custom jQuery Clickout Event
(function($){
// Custom clickout Event
$.event.special['click:out'] = {
setup: function(){
this.stopPropagation = function(e){
e.stopPropagation();
};
$.event.add(this, 'click', this.stopPropagation);
},
teardown: function(){