Skip to content

Instantly share code, notes, and snippets.

View mactkg's full-sized avatar
🍼
I'm feeding milk...

mactkg mactkg

🍼
I'm feeding milk...
View GitHub Profile
@mactkg
mactkg / player.pde
Created April 19, 2012 15:08
まだ途中ですよ
import ddf.minim.analysis.*;
import ddf.minim.*;
Minim minim;
AudioPlayer in;
int time;
int waveH;
String stringName = "test";
*-zsh zone(3356)-*
/Users/mactkg/Desktop/pros% bash
*-bash zone(23750)-*
bash-3.2$ csh
*-csh zone(23756)-*
[athene:~/Desktop/pros] mactkg% ps -la
UID PID PPID F CPU PRI NI SZ RSS WCHAN S ADDR TTY TIME CMD
0 3352 62566 4106 0 31 0 2436324 1612 - Ss f1992a0 ttys000 0:00.25 login -pf mactk
501 3356 3352 4006 0 31 0 2437320 2724 - S cb37540 ttys000 0:00.18 -zsh
501 23750 3356 4006 0 31 0 2435548 996 - S 1cb527e0 ttys000 0:00.00 bash
@mactkg
mactkg / gist:3076555
Created July 9, 2012 13:27
はいれつ
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <limits.h>
#define NUM 100000
#define N 2147483647L
int main(void){
long long int i;
clock_t start,end;
<install>
<name>ofxUI</name>
<version>0.01</version>
<author>none</author>
<url></url>
<add>
<!-- ===================================================================== -->
<!-- ========================== add per project using this addon ========= -->
<!-- ===================================================================== -->
@mactkg
mactkg / jinkouchinou.py
Created October 17, 2012 16:29 — forked from salexkidd/jinkouchinou.py
やったー!Pythonでも人工知能できたよー!\(^o^)/
# -*- coding:utf-8 -*-
import random
def main():
word_list = [u'マジで', u'ヤバい', u'ウケるー', ]
while True:
raw_input(">>>")
print random.choice(word_list)
@mactkg
mactkg / id_rsa.pub
Created December 12, 2012 11:27
pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAoJ888agLJ1sGsZYvxLH7AhNUQNvFIH7R8Gh5pdhDHTJW2582d/fNVHZys95Rv+KRpQ25K4j/WHYfpjAdmGYtg8knAx4k+yjsdITC0aCXg32qxnMLMlwwusci4AN95THgDAEUQt3q/2FR/ssgwkkngsHaFqykLrJINVES+zK679Up/kQtwCm7b5+o3ya4T/L+AkR9C/IBfhPCZkhSQtQfVruxR2Ou5NR8eUI5hy4VPo0RxN8tRKP6Szl6kp07+1RwU8x12bInpU139kSGMhj81++dMaY59k7xX5YmQs0YMaknI8doFGgtgvHcIpNef/lnLtDEtuaqPPTFOw89YCUrUQ== [email protected]
atk giflib libevent mit-scheme rtmpdump
boost gist libffi mobile-shell ruby
cairo git libicns nkf theora
cflow git-flow libogg node tig
clisp glib librsvg opencore-amr tmux
cmake global libsigsegv openjpeg tree
corkscrew gtk+ libtiff openssl wget
eigen htop-osx libvorbis pango wine
elixir imagemagick libvpx pixman x264
erlang intltool libyaml pkg-config xvid
echo "make a directory"
sudo mkdir -p /usr/local/texlive/texmf-local/fonts/opentype/hiragino/
cd /usr/local/texlive/texmf-local/fonts/opentype/hiragino/
echo -n "I'm at"
pwd
sudo ln -fs "/Library/Fonts/ヒラギノ明朝 Pro W3.otf" ./HiraMinPro-W3.otf
sudo ln -fs "/Library/Fonts/ヒラギノ明朝 Pro W6.otf" ./HiraMinPro-W6.otf
sudo ln -fs "/Library/Fonts/ヒラギノ丸ゴ Pro W4.otf" ./HiraMaruPro-W4.otf
sudo ln -fs "/Library/Fonts/ヒラギノ角ゴ Pro W3.otf" ./HiraKakuPro-W3.otf
sudo ln -fs "/Library/Fonts/ヒラギノ角ゴ Pro W6.otf" ./HiraKakuPro-W6.otf
#!/bin/sh
ADDRESS=`grep OFFER /var/log/system.log | tail -n1 | cut -d' ' -f9`
if test -z $1
then
ssh pi@$ADDRESS
else
ssh $1@$ADDRESS
fi
@mactkg
mactkg / fft.py
Last active December 12, 2015 08:39 — forked from sgk/fft.py
import math
def fft(n, data):
theta = math.pi * 2 / n
def scramble(k, i):
while True:
i ^= k
if i >= k:
return i