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 $ = function(q, f){ | |
return [][(f? 'forEach': 'slice')].call(document.querySelectorAll(q), f || 0); | |
}; |
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 watchSwipe = function(el) { | |
var d = {}; | |
var SWIPWE = 'swipe', | |
FLICK = 'flick', | |
DIRECTIONS = ['Up', 'Left', 'Right', 'Down'], | |
SWIPE_MIN_MOVE = 50, | |
FLICK_MIN_MOVE = 30, | |
FLICK_MIN_VELO = 1; | |
el.touchstartListener_ = function(e) { |
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
/** | |
* Parallax class provides parallax effect for multiple elements. | |
* @constructor | |
*/ | |
var Parallax = function(expr) { | |
this.targets = []; | |
if (typeof expr === 'string') { | |
this.init(expr); | |
} | |
}; |
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
packages: [ | |
"atom-beautify" | |
"autocomplete-paths" | |
"color-picker" | |
"comment" | |
"docblockr" | |
"emmet" | |
"file-icons" | |
"flatland-dark" | |
"flatland-dark-ui" |
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
<?xml version="1.0"?> | |
<root> | |
<list> | |
<item> | |
<name>Kotarok custom setting</name> | |
<item> | |
<name>Kana with IJKL to cursor (and more)</name> | |
<!-- <appendix>EISUU/KANA to toggle them each other.</appendix> --> | |
<identifier>remap.kanaijklcursor</identifier> | |
<autogen>__KeyOverlaidModifier__ KeyCode::JIS_EISUU, KeyCode::OPTION_L, KeyCode::VK_JIS_TOGGLE_EISUU_KANA</autogen> |
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 ListShuffler = function(targetExpr, itemExpr) { | |
this.targetExpr = targetExpr || ''; | |
this.itemExpr = itemExpr || 'li'; | |
this.targetEl = {}; | |
this.items = []; | |
this.init(); | |
this.do(); | |
} | |
ListShuffler.prototype.init = function() { |
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
// Define custom color name. | |
$my-red: #ee3333; | |
$my-blue: #3333ee; | |
// Then assign thme to role or context based name variables. | |
$header-bg: $my-red; | |
$header-active-fg: $my-blue; | |
// Bind them to elements finally. | |
.header { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
[ | |
{ "keys": ["super+("], "command": "toggle_setting", "args": {"setting": "word_wrap"} } | |
] |
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
{ | |
"caret_style": "phase", | |
"color_scheme": "Packages/Color Scheme - Default/Espresso Soda.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 13.0, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, | |
"ignored_packages": | |
[ | |
"Vintage" |