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
{ | |
"title": "KanaFN (“keyexchange”-compatible)", | |
"rules": [ | |
{ | |
"description": "KanaFN: japanese_kana to fn unlesss alone", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "japanese_kana", |
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
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-shorthand": true, | |
"leading-zero": false, | |
"unitless-zero": true, | |
"color-case": "lower", | |
"element-case": "lower", | |
"quotes": "single", | |
"space-before-combinator": " ", |
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 PositionObserver = function(callback, options) { | |
this.root = window; | |
this.rootMargin = this.buildRootMargin_('0'); | |
this.threasholds = undefined; | |
this.els_ = []; | |
this.callback_ = callback; | |
this.init_(options); | |
this.listen_(); | |
} |
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
@mixin ripple($color: rgba(#fff, .2)) { | |
position: relative; | |
overflow: hidden; | |
&::after { | |
content: ''; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
width: 5px; |
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
import sys | |
import os | |
import datetime | |
import subprocess | |
from keyhac import * | |
def configure(keymap): |
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 pq = function(q, f) { | |
return new pq.Obj(q); | |
}; | |
pq.Obj = function(q) { | |
if (typeof q === 'string') { | |
return this.find(q); | |
} else if (q instanceof pq.Obj) { | |
return q; | |
} else if (q instanceof HTMLElement) { |
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
(function(window) { | |
'use strict'; | |
var camelize = function(str) { | |
str = str.replace(/^\s+/, ''); | |
return str.replace(/[\W]+([a-z0-9])(\w*)/ig, function(match, p1, p2) { | |
return p1.toUpperCase() + p2; | |
}); | |
}; |
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 JSONP = function(apiurl, params, options) { | |
if (params) { | |
this.apiurl = this.constructURL_(apiurl, params); | |
} | |
this.conf = { | |
callbackKey: 'callback', | |
callbackName: 'uni', | |
paramDelimiter: '&' |
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
/** | |
* Extract textNodes from the tree of given root element. And apply given | |
* function to each textNodes. | |
* @param {HTMLElement} rootEl Target DOM sub tree root. | |
* @param {Function} processor Processor function | |
* @param {Object} option Config to override | |
*/ | |
var processTextNodes = function(rootEl, processor, option) { | |
var conf = { | |
dummyElementName: 'dummy', |
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 watchInview = function(el) { | |
// Get most closest element which has scrollbar. | |
var scrollContainer = getAncestors(el).find(function(el) { | |
return el.scrollHeight > el.offsetHeight || el.scrollWidth > el.offsetWidth; | |
}); | |
el.scrollContainer = | |
(scrollContainer instanceof HTMLBodyElement)? window: scrollContainer; |
NewerOlder