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
sudo ln -s libpanelw.so.5 /usr/lib/libpanelw.so | |
sudo ln -s libformw.so.5 /usr/lib/libformw.so | |
sudo ln -s libmenuw.so.5 /usr/lib/libmenuw.so | |
sudo ln -s libncursesw.so.5 /lib/libncursesw.so |
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/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby | |
#encoding: utf-8 | |
require "yaml" | |
require File.expand_path(File.join(File.dirname(__FILE__), "serialport.rb")) | |
require File.expand_path(File.join(File.dirname(__FILE__), "memq.rb")) | |
class String | |
def to_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
c2h2@c2h2rack001:~$ ./a.out /dev/ttyS0 57600 8 MARK 1 0x01fdfd | |
lenth is 2 8 :01 | |
lenth is 4 8 :3634 | |
lenth is 6 8 :3634 | |
c2h2@c2h2rack001:~$ ./a.out /dev/ttyS0 57600 8 SPACE 1 0x01fd000002a5010002007f1110091210090000000023595901000000000000140010080801010003010000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0fffffff9fff0ff3ffffffff0ff3ffffffff0ffffff3fffffffffffffffffffffffffffffffffffeefffffffdffeeffbfffffffeeffbfffffffeeffffffbfffffffffffffffffffffffffffffffffffeffffffffdffefffbfffffffefffbfffffffefffffffbfffffffffffffffffffffffffffffffffffeffffffffdffefffbfffffffefffbfffffffefffffffbfffffffffffffffffffffffffffffffffff81ffc1ffe1ff81ffa3ffc1ff81ffa3ffc1ff81ffc1ffa3ffffffffffffffffffffffffffffffffffefffbdffddffefff9dffbdffefff9dffbdffefffbbff9dffffffffffffffffffffffffffffffffffefffbfffbdffefffbdffbfffefffbdffbfffefffbbf |
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/ruby | |
#encoding: utf-8 | |
require "serialport" | |
ENABLE_RS485_RELAY = true | |
DEV=0 | |
BAUD=57600 | |
MSG_SLEEP_TIME = 0.1 |
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
pycon工作: 翻译 | |
姓名: 曹一凌 Yiling Cao | |
介绍: Ruby, Python and C Developer, Graduated from University of Melbourne. Worked as Web developer, Hardware Developer and System Administrator, Current interests: Image processing, computer vision, large scale information retrieval and processing & VOIP Systems | |
介绍:Ruby, Python, C开发者, 澳大利亚墨尔本大学计算机系毕业,曾担任web 开发, 硬件工程师, 系统运维。感兴趣于 图像处理,计算机视觉, 大规模信息处理, VOIP系统. | |
gravatar: http://ps58611.dreamhost.com/1448edb454b1d651bac30a667e4e67a0.jpeg |
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
/* W83627UHG GPIO DEMO PROGRAM File Name : 2780GPIO.C | |
*/ | |
#include <stdio.h> | |
#include <conio.h> | |
#include <dos.h> | |
#define Superio2_Addr 0x2E | |
/* #define DEBUG 1 */ | |
void enter_Superio2_CFG(void) { | |
outportb(Superio2_Addr, 0x87); |
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
equire 'date' | |
require 'rubygems' | |
require 'cool.io' | |
require 'yajl' | |
ADDR = '127.0.0.1' | |
PORT = 2947 | |
class Gps |
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
require 'bunny' | |
EXCH = "asdf" | |
QUE = "qwer" | |
b= Bunny.new | |
b.start | |
exch = b.exchange(EXCH, :type => :fanout) |
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
require 'bunny' | |
EXCH = "asdf" | |
QUE = "qwer" | |
b= Bunny.new | |
b.start | |
exch = b.exchange(EXCH, :type => :fanout) |
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
require 'ruby-poker' | |
TOTAL_TIMES = 1000000 | |
FACES = "AKQJT98765432" | |
SUITS = "CDSH" | |
srand | |
# build a deck. |
OlderNewer