Skip to content

Instantly share code, notes, and snippets.

View aycabta's full-sized avatar
๐Ÿ’ญ
๐Ÿดโ€โ˜ ๏ธ

aycabta aycabta

๐Ÿ’ญ
๐Ÿดโ€โ˜ ๏ธ
  • Space Pirates, LLC.
View GitHub Profile
@aycabta
aycabta / .tmux.conf
Created November 8, 2013 13:05
tmux configuration
set-option -g prefix C-t
bind-key C-t send-prefix
unbind-key C-b
#set-window-option -g mode-mouse on
set-window-option -g mode-keys vi
set-window-option -g utf8 on
set-option status-utf8 on
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?
#define R { return
#define P P (
#define L L (
#define T S (v, y, c,
#define C ),
#define X x)
#define F );}
int r, a;
P y, X
@aycabta
aycabta / Gemfile
Last active August 29, 2015 13:57
Embedded Niconico Player API "thumb_watch" to JSONP
source :rubygems
gem 'sinatra'
gem 'thin'
@aycabta
aycabta / fgh3tex.rb
Last active August 29, 2015 14:02
Transcribes FGH f_3(n) to TeX
def oh_great(n)
if n == 1
"2^n n"
else
prev = oh_great(n - 1)
"2^{#{prev}} {#{prev}}"
end
end
def output(n)
@aycabta
aycabta / MathJax.html
Last active August 29, 2015 14:02
Very Simple MathJax Page
<!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: [['$','$'],['\\(','\\)']] }
});
@aycabta
aycabta / README.md
Last active August 29, 2015 14:03
PulseAudio formula for Mavericks

PulseAudio formula for Mavericks

Usage

  • $ sudo cp pulseaudio.rb /usr/local/Library/Formula/pulseaudio.rb
  • $ brew install pulseaudio
@aycabta
aycabta / simhydra.bas
Last active August 29, 2015 14:05
Simple Hydra
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
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
๐Ÿ™
๐Ÿ˜
๐Ÿ
๐Ÿ†
๐Ÿ€ฒ
๐Ÿซ
๐Ÿ‚Œ
๐Ÿ‚“
๐Ÿœ
๐Ÿ€บ