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
LOOP_COUNT = 50 | |
def main | |
`ffmpeg -i in.gif -f mp4 in.mp4` | |
`ffmpeg #{LOOP_COUNT.times.map { '-i in.mp4' }.join(' ')} -filter_complex "concat=n=#{LOOP_COUNT}:v=1:a=0" out.mp4` | |
end | |
main |
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
var isDisplay = true; | |
$(document).keyup(function(e) { | |
if (e.keyCode == 27) { | |
isDisplay = !isDisplay; | |
if(isDisplay) { | |
$('#status, .avatars, .options, .postinfo, .controller, .sub').show(); | |
$('.sub').css('top', '210px'); | |
} else { | |
$('#status, .avatars, .options, .postinfo, .controller, .sub').hide(); | |
$('.sub').css('top', '-20000px'); |
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
jQuery(($)-> | |
frequency = 0.03 | |
body = $('body') | |
i = 0 | |
setInterval(-> | |
i += 1 | |
red = Math.sin(frequency * i + 0) * 127 + 128 | |
green = Math.sin(frequency * i + 2) * 127 + 128 |
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
require 'mecab' | |
require 'oj' | |
require 'pry' | |
RE_A = /[γ’γ«γ΅γΏγγγγ€γ©γ―]/ | |
RE_I = /[γ€γγ·γγγγγͺ]/ | |
RE_U = /[γ¦γ―γΉγγγγ γ¦γ«]/ | |
RE_E = /[γ¨γ±γ»γγγγ‘γ¬]/ | |
RE_O = /[γͺγ³γ½γγγγ’γ¨γγͺγ²]/ | |
REGEXP = /\A#{RE_I}γ \Z/ | |
TARGET = 'γγ ' |
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
#hdtb_tls { | |
background-image: -webkit-linear-gradient(top,#f8f8f8,#f1f1f1) !important; | |
border: 1px solid #c6c6c6 !important; | |
} |
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
body.entry #bookmarks .bookmark-list .header { | |
margin: 3px 0 0 0 !important; | |
display: inline-block !important; | |
width: auto !important; | |
} | |
body.entry #bookmarks .comment-container { | |
display: inline !important; | |
margin: 0 0 0 10px !important; | |
} |
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
# http://gist.github.com/396902 | |
local COMMAND="" | |
local COMMAND_TIME="" | |
function growl_precmd () { | |
if [ "$COMMAND_TIME" -ne "0" ] ; then | |
local d=`date +%s` | |
d=`expr $d - $COMMAND_TIME` | |
if [ "$d" -ge "5" ] ; then | |
COMMAND="$COMMAND " | |
say "$COMMAND" &! |
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
var line = $('pre:last'); | |
var text = line.text(); | |
// Change empty line to border with lime color | |
if (/Started GET "\/assets/.test(text)) { | |
line.css({ display: 'none' }); | |
} | |
// Change empty line to border with lime color | |
if (text == '\n') { |
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
// reload if several seconds takes after last rendering | |
var now = function () { | |
return parseInt((new Date)/1000); | |
}; | |
var writeLastRenderedAt = function () { | |
$('body').data('last-rendered-at', now()); | |
}; | |
writeLastRenderedAt(); |