- アプリを利用される方のプライバシーを尊重し、本アプリは、個人情報を収集いたしません。
- アプリ内で閲覧、検索、共有した情報について、追跡や収集、外部への転送はいたしません。
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 -*- | |
# $ rspec array_quest_spec.rb | |
class ArrayQuest | |
def q1(array) | |
array.first | |
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
require 'rubygems' | |
require 'rack' | |
class App | |
def call(env) | |
[ 200, { 'Content-Type' => 'text/plain' }, ['Hello World.'] ] | |
end | |
end | |
run App.new |
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
source :rubygems | |
gem 'sinatra' |
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 python | |
# -*- coding: utf-8 -*- | |
from collections import OrderedDict | |
print '### Standard Dict ###' | |
d = {} | |
for i in range(1, 11): |
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 python | |
# -*- coding: utf-8 -*- | |
# pip install pillow | |
from PIL import Image | |
from PIL import ImageDraw | |
from PIL import ImageFont | |
WIDTH = 480 |
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 up = new Label(80, 40); | |
up.text = 'up'; | |
up.x = 140; | |
up.y = 240; | |
up.addEventListener('touchstart', function() { | |
game.input.up = true; | |
}); | |
up.addEventListener('touchend', function() { | |
game.input.up = false; | |
}); |
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
def pp_json(json) | |
puts `echo '#{json}' | python -mjson.tool` | |
end |
git fetch
git checkout -t origin/remote-branch-name
OlderNewer