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
#include <LiquidCrystal.h> | |
int incomingByte; | |
char inByte; | |
String inMsg; | |
LiquidCrystal lcd(7,8,9,10,11,12,13); | |
void setup() | |
{ | |
lcd.begin(2, 16); | |
lcd.clear(); |
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
#include <LiquidCrystal.h> | |
int incomingByte; | |
char inByte; | |
String inMsg; | |
LiquidCrystal lcd(7,8,9,10,11,12,13); | |
void setup() | |
{ | |
lcd.begin(2, 16); | |
lcd.clear(); |
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/env ruby | |
# encoding : utf-8 | |
require 'userstream' | |
require 'yaml' | |
require 'serialport' | |
sp = SerialPort.new("/dev/ttyACM0", 9600, 8, 1, SerialPort::NONE) | |
stream_config = YAML.load_file(File.expand_path(File.dirname(__FILE__) + '/config.yml')) |
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
imap <expr><TAB> neocomplcache#sources#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : pumvisible() ? "\<C-n>" : "\<TAB>" |
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
http://twitter.com/#!/nefo_mi/status/176393856881930241 | |
http://twitter.com/#!/nefo_mi/status/176371287390822400 | |
http://twitter.com/#!/nefo_mi/status/176369618666008577 | |
http://twitter.com/#!/libkinjo/status/176369087465799680 | |
http://twitter.com/#!/nefo_mi/status/176365952034799616 |
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
M-: | |
(let((l(twittering-current-timeline-data)))(with-temp-file"~/a.txt"(mapc(lambda(tw)(insert"http://twitter.com/#!/"(cdr(assq'user-screen-name tw))"/status/"(cdr(assq'id tw))"\n"))l))) | |
で現在表示してるtimelineからデータを抜き出してtwitterのurlっぽいなにをファイルに保存する。 | |
フィルタかけたい。 |
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 Display | |
attr_accessor :print | |
def initialize | |
@print = [] | |
end | |
def write(msg) | |
@print.push(msg) | |
end |
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/env ruby | |
require 'open-uri' | |
require 'json' | |
if ARGV.first.nil? | |
puts <<EOF | |
USAGE: export_atnd2twit.rb [ATND EVENT ID] | |
e.g. ruby export_atnd2twit.rb 24700 | |
# http://atnd.org/events/24700 |
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
:user_name: YOUR NAME | |
:list_name: LIST NAME | |
:consumer_key: CONSUMER KEY | |
:consumer_secret: CONSUMER SECRET | |
:oauth_token: ACCESS TOKEN | |
:oauth_token_secret: ACCESS SECRET TOKEN |