Skip to content

Instantly share code, notes, and snippets.

@cherenkov
cherenkov / GM-jsonp-test.user.js
Created October 15, 2010 16:31
llevalを使ったサンプル。
// ==UserScript==
// @name lleval-test
// @namespace http://d.hatena.ne.jp/Cherenkov/
// @include *
// ==/UserScript==
// サンプルで使うJSONP供給源
// lleval - run codes from your browser http://colabv6.dan.co.jp/lleval.html
@hakobe
hakobe / build.pl
Created November 25, 2010 13:18
Titanium build server
use strict;
use warnings;
use AnyEvent;
use AnyEvent::HTTPD;
use AnyEvent::Util qw(run_cmd);
use Cwd;
my $httpd = AnyEvent::HTTPD->new (port => 9090);
@hakobe
hakobe / gist:1777331
Created February 9, 2012 04:37
Hatena-Project zsh completion
function h {
cd ~/work/hatena/$1
}
function _h {
local allfiles
local -a _projects _others
allfiles=`find ~/work/hatena/* -type d -maxdepth 0 -exec basename '{}' ';'`
var cluster = require('cluster');
var fs = require('fs');
if (!cluster.isMaster) {
process.on('message', function (e) {
e.args.unshift(function (result) {
fs.writeFileSync(e.path + '~', JSON.stringify({ result : result }));
fs.renameSync(e.path + '~', e.path);
process.exit();
});

過去に視聴したアニメ

  • 2014
    • 未確認で進行形
    • 世界征服謀略のズヴィズダー
    • ノラガミ
    • いなり、こんこん、恋いろは
    • 凪のあすから
    • キルラキル
    • ガンダムビルドファイターズ
  • 銀の匙 2期
@bendc
bendc / nodelist-iteration.js
Created January 13, 2015 14:39
ES6: Iterating over a NodeList
var elements = document.querySelectorAll("div"),
callback = (el) => { console.log(el); };
// Spread operator
[...elements].forEach(callback);
// Array.from()
Array.from(elements).forEach(callback);
// for...of statement

Convert MP4 to WMV on MacOS

Install ffmpeg

  1. Open Spotlight:

    Open Spotlight

  2. Search Terminal and press enter: