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 establish-break($body: true, $pre: true, $inline: true, $table: true) { | |
@if $body { | |
body { | |
word-wrap: break-word; | |
} | |
} | |
@if $pre { | |
pre { | |
overflow: auto; |
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 linear-gradient($start, $color-stops...) { | |
$start: unquote($start); | |
$vendors-direction: null; | |
$directions: top left bottom right; | |
@if str-index($start, "top") > 0 or str-index($start, "left") > 0 or str-index($start, "bottom") > 0 or str-index($start, "right") > 0 { | |
$proc: (); | |
@for $i from 1 to 4 { | |
@if str-index($start, nth($directions, $i)) > 0 { | |
$proc: append($proc, nth($directions, if($i < 3, $i + 2, $i - 2))); |
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
path = require 'path' | |
grunt.registerMultiTask 'template_concat', -> | |
indent = (text, indentStr, width)-> | |
lines = text.split "\n" | |
t = '' | |
for i in [0...width] | |
t += indentStr | |
lines.forEach (line, index)-> | |
lines[index] = t + line |
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> | |
<item> | |
<name>Change Shift_Underscore(_) to Singlequote(')</name> | |
<identifier>private.swap_singlequote_and_backquote</identifier> | |
<autogen> | |
--KeyToKey-- | |
KeyCode::JIS_UNDERSCORE, VK_SHIFT, | |
KeyCode::KEY_7, VK_SHIFT | |
</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
# CSSO on stylesheet saved | |
on_stylesheet_saved do |filename| | |
if File.exists?(filename) | |
system("csso #{filename} #{filename}") | |
end | |
end |
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
$('[data-ga-count]').on('click.ga', function() { | |
var $this = $(this), | |
data = $this.data('ga-count'), | |
splitter = ':'; | |
if (data.indexOf(splitter) == -1 || $this.data('ga-counted')) return true; | |
$this.data('ga-counted', true); | |
data = data.split(splitter); | |
_gaq.push(['_trackEvent', data[0], 'click', data[1]]); | |
}); |
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
strong { | |
position: relative; | |
} | |
strong::after { | |
display: inline-block; | |
content: ''; | |
position: absolute; | |
z-index: -1; | |
bottom: 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
function throttle(fn, interval) { | |
var timer = null; | |
return function() { | |
var self = this, args = arguments; | |
if (!timer) { | |
timer = setTimeout(function() { | |
timer = null; | |
fn.apply(self, args); | |
}, interval); | |
} |
NewerOlder