_ _ _ ____ ____ ____
| \ | | _____ _| |_| __ ) ___|| _ \
| \| |/ _ \ \/ / __| _ \___ \| | | |
| |\ | __/> <| |_| |_) |__) | |_| |
|_| \_|\___/_/\_\\__|____/____/|____/
``` `
s` `.....---.......--.``` -/
This file contains hidden or 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 fontforge -lang=py -script | |
# -*- coding: utf-8 -*- | |
import fontforge | |
from datetime import date | |
# Open Sans のあるディレクトリのパス | |
opensans_path = "./Open_Sans" | |
# Mgen+ のあるディレクトリのパス |
This file contains hidden or 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 | |
set -ue | |
prefix=`basename $0` | |
timestamp_file=/tmp/$prefix.timestamp | |
cache_file=/tmp/$prefix.cache | |
timestamp=`date '+%s'` | |
cache_time=300 | |
if [ "${1:-''}" = "nocache" ];then |
This file contains hidden or 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 ( | |
"log" | |
"os" | |
"os/exec" | |
"path/filepath" | |
"strings" | |
) |
This file contains hidden or 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/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
This file contains hidden or 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
モチベーション | |
--------------- | |
Androidのエミュレータは中でQEMUを使ってる | |
中で使われているので、Android開発とは直接関係がないけど、 | |
素のQEMUの使い方を知る。 | |
* QEMUの使い方を覚える | |
* Linuxをエミュレータ環境で動かしてみる | |
* ARM のクロス環境に慣れてみる |
This file contains hidden or 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
// +build ignore | |
// malloc test for false sharing | |
package main | |
import ( | |
"flag" | |
"runtime" |
This file contains hidden or 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 bash | |
# mostly from http://word.bitly.com/post/31921713978/static-analysis | |
function cfmt { | |
if [[ $# -ne 1 ]]; then | |
echo "Usage: cfmt <file>" | |
else | |
astyle \ | |
--style=1tbs \ | |
--lineend=linux \ | |
--convert-tabs \ |
This file contains hidden or 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 launchd plist file will run godoc all the time on port 6060. | |
To have launchd start godoc at login, put godoc.plist in ~/Library/LaunchAgents: | |
curl -L https://gist.github.com/kr/3de40737f0e2c50b3b3a/raw/godoc.plist | | |
sed s:YOUR_GODOC_HERE:`which godoc`: | | |
sed s:YOUR_GOPATH_HERE:$GOPATH: \ | |
>~/Library/LaunchAgents/godoc.plist | |
Then to load godoc right away: | |
launchctl load ~/Library/LaunchAgents/godoc.plist |