$ sudo cp pulseaudio.rb /usr/local/Library/Formula/pulseaudio.rb
$ brew install pulseaudio
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
class IO | |
def readline_nonblock(length) | |
eoferror = nil | |
begin | |
data = read_nonblock(length) | |
rescue Errno::EAGAIN, Errno::EWOULDBLOCK => e | |
rescue EOFError => e | |
eoferror = e | |
end | |
if not data.nil? |
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 :rubygems | |
gem 'sinatra' | |
gem 'thin' | |
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
def oh_great(n) | |
if n == 1 | |
"2^n n" | |
else | |
prev = oh_great(n - 1) | |
"2^{#{prev}} {#{prev}}" | |
end | |
end | |
def output(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
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<meta charset="UTF-8"> | |
<title>simple MathJax</title> | |
<script type="text/x-mathjax-config;executed=true"> | |
MathJax.Hub.Config({ | |
tex2jax: { inlineMath: [['$','$'],['\\(','\\)']] } | |
}); |
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
dim A(∞) | |
B=9 | |
for C=0 to 9 | |
for D=0 to B | |
A(D)=D | |
next | |
for E=B to 0 step -1 | |
B=B*B | |
for F=0 to E | |
if A(E-F)<A(E) or A(E)=0 then |
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
dim A(∞) | |
B = 2 | |
for D = 0 to B | |
A(D) = D | |
next | |
for E = B to 0 step -1 | |
for F = 0 to E | |
if A(E-F) < A(E) or A(E) = 0 then | |
G=F | |
F=E |
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
🁙 | |
🁘 | |
🁐 | |
🁆 | |
🀲 | |
🁫 | |
🂌 | |
🂓 | |
🁜 | |
🀺 |
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
// ==UserScript== | |
// @name comico header drop off | |
// @namespace http://www.comico.jp/detail.nhn?titleNo=47 | |
// @version 0.1.1 | |
// @description hi | |
// @include /^https?://www.comico.jp/ | |
// @copyright 2014+, You | |
// ==/UserScript== | |
(function() { |
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 | |
require 'optparse' | |
run_interval_milli_second = 1000 | |
opt = OptionParser.new | |
opt.on('-i VAL') { |v| run_interval_milli_second = v.to_i } | |
opt.parse!(ARGV) | |
OlderNewer