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/python | |
# coding: utf-8 | |
import sys | |
import os | |
import wave | |
import numpy as np | |
import pylab as pl | |
def dft_test(filename): |
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 | |
# Requirement: wget, unzip, git and fontforge | |
function check_requirement() { | |
messages=() | |
for r in "wget" "unzip" "git" "fontforge" | |
do | |
[ -z `which $r` ] && messages+=($r) | |
done | |
if [ ${#messages[@]} -gt 0 ] |
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
//@import url(http://fonts.googleapis.com/css?family=Roboto:400,300); | |
//@import url(http://fonts.googleapis.com/css?family=Russo+One); | |
body, textarea { | |
font-family:'ヒラギノ角ゴ Pro W3','Hiragino Kaku Gothic Pro','メイリオ',Meiryo,'MS Pゴシック',sans-serif; | |
} | |
.Header h1 { | |
font-family: 'Russo One', sans-serif; | |
} |
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 | |
function install_roboto() { | |
mkdir roboto | |
wget -O roboto/roboto.zip "https://developer.android.com/downloads/design/Roboto_Hinted_20120823.zip" | |
unzip roboto/roboto.zip -d roboto/ | |
mv -vf roboto/*.ttf ~/.fonts | |
rm -vrf roboto | |
} |
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
<div style="position: absolute; top: 50px; right: -150px; width: 400px; padding: 10px; font-size: 16px; text-align: center; color: rgb(255, 255, 255); font-family: 'trebuchet ms', verdana, arial, sans-serif; -webkit-transform: rotate(+45deg); -webkit-transform-origin: 50% 0px; background-color: rgb(0, 0, 0); border: 1px solid rgb(170, 170, 170); z-index: 12; opacity: 0.5;"><a target="_blank" style="text-decoration: none" href="https://twitter.com/r9y9">Follow me</a></div> |
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
# Doxyfile 1.8.5 | |
# This file describes the settings to be used by the documentation system | |
# doxygen (www.doxygen.org) for a project. | |
# | |
# All text after a double hash (##) is considered a comment and is placed in | |
# front of the TAG it is preceding. | |
# | |
# All text after a single hash (#) is considered a comment and will be ignored. | |
# The format is: |
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
#pragma once | |
#include <cmath> | |
#include <memory> | |
#include <vector> | |
#include <cassert> | |
namespace sp { | |
/** |
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
package main | |
import "math" | |
import "fmt" | |
func DFT_naive (input []float64) ([]float64, []float64) { | |
real := make([]float64, len(input)) | |
imag := make([]float64, len(input)) | |
arg := -2.0*math.Pi/float64(len(input)) | |
for k := 0; k < len(input); k++ { |
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
package main | |
import "fmt" | |
func FizzBuzz (i int) string { | |
switch { | |
case i % 3 == 0 && i % 5 == 0: | |
return "fizz buzz" | |
case i % 3 == 0: | |
return "fizz" |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
type Server struct { | |
quit chan bool | |
} |
OlderNewer