Skip to content

Instantly share code, notes, and snippets.

View fakestarbaby's full-sized avatar

Yoshinori Hirasawa fakestarbaby

View GitHub Profile
@fakestarbaby
fakestarbaby / config.lua
Created December 2, 2013 17:31
Corona SDK + Parse.com でプッシュ通知をする ref: http://qiita.com/fakestarbaby/items/9b3a7b27f94170e191fb
application = {
content = {
width = 320,
height = 480,
scale = "letterBox",
fps = 30,
},
notification = {
iphone = {
-r turnip/rspec
@fakestarbaby
fakestarbaby / console
Created November 28, 2013 13:36
最新になっていない Gem を洗い出す ref: http://qiita.com/fakestarbaby/items/cdf2be9107a26ecc4234
$ bundle outdated
Updating git://github.com/byroot/rails3_acts_as_paranoid
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies...
Outdated gems included in the bundle:
* acts_as_paranoid (0.4.2 > 0.4.1 4265d9f)
* aws-sdk (1.29.0 > 1.11.1)
* devise (3.2.2 > 3.2.0)
* geokit (1.7.1 > 1.6.7)
@fakestarbaby
fakestarbaby / Gemfile
Created October 10, 2013 05:35
Rails Footnotes | ページのフッターにデバッグ情報を表示 ref: http://qiita.com/fakestarbaby/items/fe721f8523a6e3d1b7c6
group :development do
gem 'rails-footnotes', git: 'git://github.com/tommireinikainen/rails-footnotes.git'
end
@fakestarbaby
fakestarbaby / after_restart.rb
Created June 13, 2013 13:21
Engine Yard Cloud へデプロイした事を HipChat へ通知したい! ref: http://qiita.com/items/a275ddd8ff480ab9d965
require 'open-uri'
auth_token = 'AUTH_TOKEN'
room_id = 'ROOM_ID'
from = 'Engine Yard'
color = 'purple'
notify = 1
message = "#{deployed_by} deployed a new version of #{app}: #{environment_name} (#{revision[0...6]})."
`curl -d "auth_token=#{auth_token}&room_id=#{room_id}&from=#{from}&color=#{color}&notify=#{notify}&message=#{message}" https://api.hipchat.com/v1/rooms/message`
@fakestarbaby
fakestarbaby / sample.lua
Created February 2, 2013 16:03
CoronaSDKでランダムな実数を算出する! ref: http://qiita.com/items/b23857dbd9a3270772e9
-- 0〜1
math.random()
---> 0.61073766677209
-- 0〜10
math.random() * 10
---> 8.1230520494855
-- 1〜10
math.random(1, 9) + math.random()
@fakestarbaby
fakestarbaby / piyopiyo.rb
Created August 11, 2012 03:37 — forked from ppworks/piyopiyo.rb
PiyoPiyo
class PiyoPiyo
end
@fakestarbaby
fakestarbaby / _config.yml
Created April 3, 2012 04:55
OctopressでDisqusを表示させよう! ref: http://qiita.com/items/70576232d9d317183683
# ----------------------- #
# 3rd Party Settings #
# ----------------------- #
# Disqus Comments
disqus_short_name: scrabblenote
disqus_show_comment_count: false
@fakestarbaby
fakestarbaby / file0.txt
Created March 29, 2012 15:14
Octopressで新規記事を作成してみよう! ref: http://qiita.com/items/a3e7681140878904c322
$ rake new_post[test]
Creating new post: source/_posts/2012-03-29-test.markdown
@fakestarbaby
fakestarbaby / file0.txt
Created March 29, 2012 00:33
Octopressにて、ローカル環境でサクサク確認作業をするには? ref: http://qiita.com/items/57885ce076f410403033
$ rake generate
## Generating Site with Jekyll
unchanged sass/screen.scss
Configuration from /Users/y-hirasawa/Projects/rails/fakestarbaby.github.com/_config.yml
Building site: source -> public
Successfully generated site: source -> public