~% say --audio-device ?
209 AirPlay
38 Built-in Output
198 Soundflower (2ch)
63 Soundflower (64ch)
55 VoilaDevice
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
mocha --compilers coffee:coffee-react/register test.coffee |
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 assign (object) { | |
history.replaceState( | |
Object.assign(history.state, object), | |
document.title | |
) | |
} |
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
'.source.js': | |
'Prototype': | |
'prefix': 'proto' | |
'body': '${1:class_name}.prototype.${2:method_name} = function (${3:first_argument}) {\n\t${0:// body...}\n}' | |
'Function': | |
'prefix': 'fun' | |
'body': 'function ${1:function_name} (${2:argument}) {\n\t${0:// body...}\n}' | |
'Generator': | |
'prefix': 'gen', | |
'body': 'function* ${1:function_name} (${2:argument}) {\n\t${0:// body...}\n}' |
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 mdns = require('multicast-dns')() | |
var ip = require('ip') | |
mdns.on('query', function (query) { | |
if (query.questions[0] && query.questions[0].name === 'dj.local') { | |
mdns.respond([ | |
{ name: 'dj.local', type: 'A', data: ip.address() }, | |
{ name: 'dj.local', type: 'AAAA', data: ip.address('ipv6') } | |
]) | |
} |
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
#!/usr/bin/env ruby | |
image_file = "/tmp/gyazo_printer#{$$}.png" | |
pdf_file = "/tmp/gyazo_printer#{$$}.pdf" | |
`screencapture -i #{image_file}` | |
`sips -s format pdf #{image_file} --out #{pdf_file}` | |
`lpr #{pdf_file}` |
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
// seeding | |
swarm.on('peer', function (peer) { | |
dht.addPeer(peer) | |
}) | |
// signaling | |
// hub | |
hub.subscribe('/channel') | |
// peer |
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
rtmpdump -r "rtmp://flv.nhk.or.jp/ondemand/flv/news/k10010107821_201506090918_201506090918.mp4" -o file.mp4 |
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
#!/bin/bash | |
ffmpeg -i "$1" -r 10 -f image2pipe -vcodec ppm - \ | |
| convert -layers Optimize - gif:- \ | |
| gifsicle -O3 --multifile - |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<link rel="stylesheet" href="style.css" media="screen" title="no title" charset="utf-8"> | |
</head> | |
<body> | |
<div class="box"></div> | |
</body> |