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 /sys/devices/platform/i8042/serio1/serio2/ | |
# echo -n 220 > speed | |
# echo -n 220 > sensitivity |
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 main() { | |
hoge := make([]int, 10, 10) | |
show(hoge) | |
for i := range hoge { | |
hoge[i] = i |
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" | |
"strconv" | |
) | |
func main() { | |
for i := range fizzbuzz(100) { | |
fmt.Println(i) |
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
;; molokai based color theme | |
(deftheme my-molokai | |
"customized molokai theme") | |
(custom-theme-set-faces | |
'my-molokai | |
'(cursor ((t (:background "#f8f8f0")))) | |
'(font-lock-builtin-face ((t (:foreground "#66D9EF")))) | |
'(font-lock-function-name-face ((t (:foreground "#97E020")))) |
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
/* | |
* Redis sample for publishing message. | |
* To send a message to the random to the specified channel. | |
* Usage: node pub.js channel1 channel2 channel3 ... | |
*/ | |
var redis = require('redis'); | |
function main(argv) { |
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
var amqp = require('amqp'); | |
var util = require('util'); | |
/* | |
* 指定したルーティングキーで定期的にデータを送信する | |
* Usage: node pub.js key1 key2 key3 | |
*/ | |
function main(argv) { |