Skip to content

Instantly share code, notes, and snippets.

View shokai's full-sized avatar

Sho Hashimoto shokai

View GitHub Profile
anonymous
anonymous / gist:723283
Created December 1, 2010 10:13
シリアル通信テストswitch(Arduino)
int val = 0;
void setup(){
//シリアル通信開始
Serial.begin(9600);
pinMode(13,OUTPUT);
}
void loop(){
//データが0個より多いときの時
Common subdirectories: elastic-mapreduce-ruby/amazon and elastic-mapreduce-ruby-multiple-jobconf/amazon
diff -cN elastic-mapreduce-ruby/commands.rb elastic-mapreduce-ruby-multiple-jobconf/commands.rb
*** elastic-mapreduce-ruby/commands.rb 2011-02-14 14:35:14.000000000 +0900
--- elastic-mapreduce-ruby-multiple-jobconf/commands.rb 2011-02-23 10:01:37.000000000 +0900
***************
*** 525,531 ****
end
for jc in get_field(:jobconf, []) do
! stream_options << "-jobconf" << jc
@hryk
hryk / glitch.rb
Created May 10, 2011 11:13
glitch your display.
#!/usr/bin/env macruby
#
# MacRubyで画面グリッチをフルスクリーン表示する
#
# http://twitter.com/negipo/status/67572370247913473
#
# ## Usage
#
# ./glitch.rb
#
@tily
tily / mc.rb
Created August 3, 2011 09:14
すごい昔に日本語ラップっぽいものを作ろうとしてたときに書いたクラス
#!/usr/bin/env ruby
require 'xmlrpc/client'
require 'uri'
require 'open-uri'
require 'rubygems'
require 'nokogiri'
class MC
def self.associate(wordlist)
server = XMLRPC::Client.new('d.hatena.ne.jp', '/xmlrpc')
@ultraist
ultraist / ImageViewURLReplace.dat
Created October 9, 2011 00:15
ImageViewURLRepalce.datのRuby実装
>--------------------------------------------------------------------------
>-
>- http://blizzardkite.sakura.ne.jp/streamingplayer/
>- http://sites.google.com/site/scriptstuffstyle/download
>- から作成
>-
>- feezch.infoで使用.
>- バグってるパターンがあれば直したりしてます.
>-
>-------------------------------------------------------------------------
@geta6
geta6 / feedburner.twig
Created June 9, 2012 15:47
iTunesのPodCastが認識できるXMLを吐きます
<?xml version="1.0" encoding="UTF-8" ?>
<rss xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd" version="2.0">
<channel>
<title>PodTest</title>
<link>http://example.com/</link>
<pubDate>{{ 'now' | date('r') }}</pubDate>
<language>ja</language>
<description>ぽどきゃすと</description>
<itunes:author>さくせいしたひと</itunes:author>
{% for feed in feeds %}
@ymrl
ymrl / keiomobile.rb
Created September 12, 2012 06:42
日吉キャンパスのネットワーク用のアレ
require 'mechanize'
require 'pit'
config = Pit.get("keiojp",:require => {
"account" => "Your keio.jp account",
"password" => "Your keio.jp password"
})
@agent = Mechanize.new
@Gab-km
Gab-km / github-flow.ja.md
Last active April 23, 2025 04:19 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@hayajo
hayajo / changelog_en.md
Last active April 1, 2025 14:37
ChangeLog を支える英語

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@cobyism
cobyism / gh-pages-deploy.md
Last active June 22, 2025 00:24
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).