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
# 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' |
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
// 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 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 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 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 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
if ( c == 0 ) { | |
try { | |
if ( ! circlePoint.isDocked() | |
&& depthValues[i] >= minDist | |
&& depthValues[i] < cpDepth | |
) { | |
circlePoint.setDocked(true); | |
circlePoint.setDepth(depthValues[i]); | |
} | |
else if ( circlePoint.isDocked()) { |
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
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| PDO Fetch Style | |
|-------------------------------------------------------------------------- | |
| | |
| By default, database results will be returned as instances of the PHP |
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 members=document.getElementsByClassName("sf-display-name-tooltip");console.log(members);for(var TOOLTIP_NAME_CLASS="sf-tooltip-name",MISSING_NAME="(missing name)",FACEBOOK_USER="Facebook user",data_collection=[],i=0;i<members.length;i++){for(var has_tooltip_name=!1,name_elem=members[i].children[0].children[0],name_elem_classes=name_elem.classList,name_elem_classes_count=name_elem_classes.length,j=0;name_elem_classes_count>j;j++)name_elem_classes[j]===TOOLTIP_NAME_CLASS&&(has_tooltip_name=!0,j=name_elem_classes_count);var name=has_tooltip_name?name_elem.innerText:MISSING_NAME,email=has_tooltip_name?members[i].children[0].children[1].children[0].href:name_elem.children[0].href;email=email.substring(7);var data={name:name,email:email};email!=FACEBOOK_USER&&data_collection.push(data)}var data_json=JSON.stringify(data_collection);console.log(data_json); |
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
const lc = (str) => { | |
if ( typeof str === 'string' ) | |
return str.toLowerCase() | |
return str | |
} | |
export default lc |
OlderNewer