This file contains hidden or 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
/// requires | |
var gulp = require('gulp'), | |
plumber = require('gulp-plumber'), | |
coffee = require('gulp-coffee'), | |
watch = require('gulp-watch'); | |
/// dirs | |
var assets_dir = 'assets/'; | |
var coffee_dir = assets_dir + 'coffee/', |
This file contains hidden or 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
javascript:(function() { | |
var $ = document; | |
/// construct | |
var old_password = window.prompt('Old password', 'Old password'); | |
var new_password = window.prompt('New password', 'New password'); | |
element('old_password').value = old_password; | |
element('new_password').value = new_password; |
This file contains hidden or 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
'remote-ftp:create-ignore-file' : function () | |
{ | |
if ( ! hasProject() ) return; | |
FS.writeFile( | |
atom.project.getDirectories()[ 0 ].resolve('.ftpignore'), | |
'## for example, this will be ignored on sync:\n.ftpignore', | |
function (err) | |
{ | |
if ( ! err ) |
This file contains hidden or 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
// NOTE - panzoom from: https://github.com/timmywil/jquery.panzoom | |
var scope = this; | |
var doubleTapTime = 600; // ms | |
$('#div_content .pictureZoomBox img.picture') | |
.panzoom( | |
{ | |
startTransform : 'scale(1)', | |
increment : 0.4, |
This file contains hidden or 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
# delete forward bound to ctrl-backspace | |
# since ctrl-d (the default key binding for forward delete) is used by emmet | |
'.platform-darwin atom-text-editor:not([mini])': | |
'ctrl-backspace': 'core:delete' |
NewerOlder