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/sh | |
EXTENSIONS="jpe?g" | |
if [ -z "$1" ]; then | |
DIR="`pwd`" | |
else | |
DIR="$1" | |
fi | |
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
# cat /etc/system-release | |
CentOS release 6.5 (Final) |
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
$ cd /usr/local/src | |
$ sudo wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz | |
$ sudo tar -C /usr/local -xzf go1.4.2.linux-amd64.tar.gz | |
$ export PATH=$PATH:/usr/local/go/bin |
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" | |
"sort" | |
) | |
func main() { | |
a := []int{1,9,3,7,5} | |
// まずソートする |
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
$ cat /etc/lsb-release | |
DISTRIB_ID=Ubuntu | |
DISTRIB_RELEASE=12.04 | |
DISTRIB_CODENAME=precise | |
DISTRIB_DESCRIPTION="Ubuntu 12.04 LTS" | |
$ arch | |
x86_64 |
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
go fmt test.go |
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
ソート前の値: [6 4 2 7 9 0 5 3 1 8] | |
1巡目 | |
[6 4 2 7 9 0 5 3 (1) (8)] | |
[6 4 2 7 9 0 5 (3) (1) 8] > 入れ替え! | |
[6 4 2 7 9 0 (5) (1) 3 8] > 入れ替え! | |
[6 4 2 7 9 (0) (1) 5 3 8] | |
[6 4 2 7 (9) (0) 1 5 3 8] > 入れ替え! | |
[6 4 2 (7) (0) 9 1 5 3 8] > 入れ替え! | |
[6 4 (2) (0) 7 9 1 5 3 8] > 入れ替え! | |
[6 (4) (0) 2 7 9 1 5 3 8] > 入れ替え! |
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 "./model" |
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
class MyCustomViewController: UIViewController { | |
// ~略~ | |
override func prefersStatusBarHidden() -> Bool { | |
return true | |
} | |
// ~略~ |
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
let redColor = UIColor.redColor() | |
let transparentRedColor = redColor.colorWithAlphaComponent(0.6) |
OlderNewer