Skip to content

Instantly share code, notes, and snippets.

View negipo's full-sized avatar
πŸ˜‡
corpse

Yoshiteru Negishi negipo

πŸ˜‡
corpse
  • Tokyo
View GitHub Profile
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
@negipo
negipo / 0.md
Created February 22, 2014 08:23

test

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');
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
@negipo
negipo / hoge.rb
Created September 1, 2013 00:09
γƒ„γ‚€γƒΌγƒˆγ‹γ‚‰ι§„ζ΄’θ½γ‚’η”Ÿζˆγ™γ‚‹γ‚„γ€
require 'mecab'
require 'oj'
require 'pry'
RE_A = /[γ‚’γ‚«γ‚΅γ‚ΏγƒŠγƒγƒžγƒ€γƒ©γƒ―]/
RE_I = /[γ‚€γ‚­γ‚·γƒγƒ‹γƒ’γƒŸγƒͺ]/
RE_U = /[γ‚¦γ‚―γ‚Ήγƒ„γƒŒγƒ•γƒ γƒ¦γƒ«]/
RE_E = /[γ‚¨γ‚±γ‚»γƒ†γƒγƒ˜γƒ‘γƒ¬]/
RE_O = /[γ‚ͺγ‚³γ‚½γƒˆγƒŽγƒ›γƒ’γƒ¨γƒ­γ‚ͺヲ]/
REGEXP = /\A#{RE_I}γƒ \Z/
TARGET = 'ビム'
#hdtb_tls {
background-image: -webkit-linear-gradient(top,#f8f8f8,#f1f1f1) !important;
border: 1px solid #c6c6c6 !important;
}
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;
}
# 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" &!
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') {
// 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();