Skip to content

Instantly share code, notes, and snippets.

/*
* http://tour.golang.org/#44
* OR
* http://http://go-tour-jp.appspot.com/#43
*/
package main
import (
"fmt"
/*
* http://tour.golang.org/#45
* OR
* http://http://go-tour-jp.appspot.com/#44
*/
package main
import (
"tour/wc"
/*
* http://tour.golang.org/#46
* OR
* http://http://go-tour-jp.appspot.com/#45
*/
package main
import "tour/pic"
/*
* http://tour.golang.org/#47
* OR
* http://http://go-tour-jp.appspot.com/#46
*/
package main
import (
"fmt"
/*
* http://tour.golang.org/#48
* OR
* http://http://go-tour-jp.appspot.com/#47
*/
package main
import (
"fmt"
/*
* http://tour.golang.org/#69
* OR
* http://http://go-tour-jp.appspot.com/#68
*/
package main
import (
"fmt"
@ryochack
ryochack / tour70.go
Created January 12, 2012 15:19
"A Tour of Go" http://tour.golang.org/#70 共有リソースの排他がなく、問題あり
/*
* http://tour.golang.org/#70
* OR
* http://http://go-tour-jp.appspot.com/#69
*/
package main
import (
"os"
@ryochack
ryochack / tour70_chanonly.go
Created January 21, 2012 17:38
"A Tour of Go" http://tour.golang.org/#70 channelのみの並列制御版
/*
* http://tour.golang.org/#70
* OR
* http://http://go-tour-jp.appspot.com/#69
*/
package main
import (
"os"
@ryochack
ryochack / timer.py
Created June 23, 2012 14:51
python timer
#!/usr/local/bin/python3
import sys
import re
import threading
# CountDownTimer
def countdown(count):
print(count)
@ryochack
ryochack / SetReg.c
Created August 14, 2012 14:20
BitOrder
#include <stdio.h>
#include <stdlib.h>
typedef struct tag_RegisterBlock {
unsigned char addr;
int sbit;
int len;
} TRegisterBlock;
static inline void dec2bin(unsigned char val)