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 'octokit' | |
MGEM_LIST_REPO = 'mruby/mgem-list' | |
client = Octokit::Client.new(access_token: '') # Note: Set access token | |
files = client.contents(MGEM_LIST_REPO) | |
puts "count of files: #{files.size}" | |
files.each do |f| |
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
%W[(L@FHMD\r (LOKDLDMS\r (SDQ@SD\r (LOQNUD\r].each do |w| | |
w.bytes do |c| | |
sleep(0.2) | |
printf('%c ', c + '!'.ord) | |
end | |
puts | |
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
/** | |
* ambient noren (Arduino) | |
* | |
* Receive z-axis acceleration from sensor and send it. | |
* | |
* - Mac OS X 10.8.5 Mountain Lion | |
* - SuperCollider 3.6.5 ... http://supercollider.sourceforge.net/ | |
* - LilyPad Arduino USB ... https://www.sparkfun.com/products/11190 | |
* - LilyPad Accelerometer ADXL335 ... https://www.sparkfun.com/products/9267 | |
* - Flora Accelerometer LSM303 ... http://www.adafruit.com/products/1247 |
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
/* | |
Receive sensor data and play guitar sound. | |
- Mac OS X 10.6.8 Snow Leopard | |
- SuperCollider 3.6.5 | |
- LilyPad Arduino USB ... https://www.sparkfun.com/products/11190 | |
- FLORA Accelerometer (LSM303) ... http://www.adafruit.com/products/1247 | |
*/ | |
// 1. boot |
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
/* | |
Send z-axis acceleration. | |
- LilyPad Arduino USB ... https://www.sparkfun.com/products/11190 | |
- FLORA Accelerometer (LSM303) ... http://www.adafruit.com/products/1247 | |
*/ | |
#include <Wire.h> | |
#include <LSM303.h> | |
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 SourceAnnotationExtractor | |
def find_with_custom_directories | |
find_without_custom_directories(%w(app config lib script test spec)) | |
end | |
alias_method_chain(:find, :custom_directories) | |
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 | |
# coding: utf-8 | |
require 'skypemac' | |
mood_text = ARGV[0] | |
profile = SkypeMac::Profile.new(nil) | |
profile.mood_text = mood_text |
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
# coding: utf-8 | |
# | |
# Hacker News RSS 通知 | |
# | |
# Hacker News RSS から指定した文字列を検索して Growl で通知する。 | |
# | |
require 'rubygems' | |
require 'nokogiri' |