Skip to content

Instantly share code, notes, and snippets.

@Iwark
Iwark / 20151124golang.md
Created November 24, 2015 14:29
Go言語勉強会の資料

Go言語勉強会@Donuts

Presented by いわーく, 上田哲広

Go言語について

  • Googleが2009年に公開した比較的新しい言語
  • シンプルで読みやすいことを重視して作られた

Go言語の特徴

@pgodino
pgodino / GPUImageMovie.h
Created October 2, 2012 15:06
Play audio with movie
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "GPUImageOpenGLESContext.h"
#import "GPUImageOutput.h"
#import "TPCircularBuffer.h"
#ifndef max
#define max( a, b ) ( ((a) > (b)) ? (a) : (b) )
#endif
@hitode909
hitode909 / magit-status
Created June 22, 2012 04:54
ターミナルからmagit-statusする
#!/bin/sh
emacsclient -e "(magit-status \"./$(git rev-parse --show-cdup)\")" &
osascript -e 'tell application "Emacs" to activate'
@phelrine
phelrine / tsp.png
Created January 8, 2012 11:01
TSP
tsp.png
@phelrine
phelrine / gmm.py
Created November 20, 2011 12:27
混合ガウス分布のパラメータ推定
import numpy as np
import numpy.random as nprand
import matplotlib.pyplot as plt
def dnorm(x, m, s):
return np.exp(-((x - m) ** 2)/(2 * s)) / np.sqrt(2 * np.pi * s)
def EM(data, init, iter):
params = np.array(init)
@esehara
esehara / gist:1325133
Created October 29, 2011 21:45
Life Music (Life Game like Music Composer)
# -*- coding:utf-8 -*-
import pygame
from pygame.locals import *
import pygame.mixer
import sys
import copy
import array
sounds = [0 for j in range(0,20)]
cell = [[0 for j in range(0,20)] for i in range(0,20)]
@jessykate
jessykate / Jekyll nd Octopress Liquid tag for MathJax.rb
Created February 18, 2011 23:37
A simple liquid tag for Jekyll/Octopress that converts {% m %} and {% em %} into inline math, and {% math %} and {% endmath %} into block equations, by replacing with the appropriate MathJax script tags.
module Jekyll
class MathJaxBlockTag < Liquid::Tag
def render(context)
'<script type="math/tex; mode=display">'
end
end
class MathJaxInlineTag < Liquid::Tag
def render(context)
'<script type="math/tex">'
end