This example demonstrates the use of setting the dragConstraints property for a brush.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(func, wait, immediate) -> | |
_params = {} | |
run = _.debounce -> | |
func(_params) | |
_params = {} | |
, wait, immediate | |
(params) -> | |
_params = _.extend(_params, params) | |
run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = [{ | |
date: new Date("Jan 01, 2013"), | |
data: 12 | |
},{ | |
date: new Date("Jan 02, 2013"), | |
data: 17 | |
},{ | |
date: new Date("Jan 03, 2013"), | |
data: 5 | |
},{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require("gulp"); | |
var handlebars = require("gulp-handlebars"); | |
var wrap = require("gulp-wrap"); | |
var declare = require("gulp-declare"); | |
var concat = require("gulp-concat"); | |
var less = require("gulp-less"); | |
var bower = require("main-bower-files"); | |
var react = require("gulp-react"); | |
var notify = require("gulp-notify"); | |
var plumber = require("gulp-plumber"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"font_size": 12.0, | |
"ignored_packages": | |
[ | |
"SFTP" | |
], | |
"soda_classic_tabs": true, | |
"tab_size": 2, | |
"theme": "Soda Dark.sublime-theme", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var source = require('vinyl-source-stream'); | |
var buffer = require('vinyl-buffer'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var babel = require('babelify'); | |
function compile(watch) { | |
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
BLUE="\[\033[0;34m\]" | |
LIGHT_RED="\[\033[1;31m\]" | |
LIGHT_GREEN="\[\033[1;32m\]" | |
WHITE="\[\033[1;37m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
COLOR_NONE="\[\e[0m\]" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Notifies you when certain files are changed which necessitate further action on your part. | |
# | |
# To enable: | |
# - copy this file to .git/hooks/post-merge | |
# - chmod +x .git/hooks/post-merge | |
commits = `git reflog -n 2`.lines.map { |l| l.split.first } | |
changed = `git diff --name-only #{commits.first} #{commits.last}`.lines.map &:strip | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# OPEN/READ ALIASES | |
alias ba='vim $HOME/.bash_aliases; source $HOME/.bash_aliases' | |
alias bar='source $HOME/.bash_aliases' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MAC manipulators | |
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`' | |
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE' |
OlderNewer