This file contains hidden or 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
| Given /^(?:すべてのメールをクリアする|メールボックスが空になっている)$/ do | |
| reset_mailer | |
| end | |
| # Use this step to open the most recently sent e-mail. | |
| When /^メールを開く$/ do | |
| open_email(current_email_address) | |
| end | |
| When /^"([^']*?)" のメールを開く$/ do |address| |
This file contains hidden or 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
| # -*- ruby -*- | |
| require 'autotest/redgreen' | |
| module Autotest::Growl | |
| def self.growl title, msg, img="~/.rails_ok.png", pri=0, sticky="" | |
| msg += " at #{Time.now.strftime('%Y-%m-%d %H:%M:%S')}" | |
| system "growlnotify -n autotest --image #{img} -p #{pri} -m #{msg.inspect} #{title} #{sticky}" | |
| end | |
| Autotest.add_hook :ran_command do |at| | |
| results = [at.results].flatten.join |
This file contains hidden or 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
| let colors_name = "basic" | |
| " Remove all hiing | |
| hi clear Constant | |
| hi clear Number | |
| hi clear Statement | |
| hi clear PreProc | |
| hi clear Type | |
| hi clear Special | |
| hi clear Identifier |
This file contains hidden or 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
| javascript:var getTinyURL=function(longURL,success){var ud='json'+(Math.random()*100).toString().replace(/\./g,''),api='http://json-tinyurl.appspot.com/?url=';window[ud]=function(o){success&&success(o.tinyurl);};document.getElementsByTagName('body')[0].appendChild((function(){var s=document.createElement('script');s.type='text/javascript';s.src=api+encodeURIComponent(longURL)+'&callback='+ud;return s;})());};getTinyURL('http://runeleaf.net',function(tinyurl){location.href='http://twitter.com/home?status='+encodeURIComponent('Browsing: '+document.title+' '+tinyurl)}); |
This file contains hidden or 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 'formula' | |
| class Vim < Formula | |
| homepage 'http://www.vim.org/' | |
| url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2' | |
| head 'https://vim.googlecode.com/hg/' | |
| sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d' | |
| version '7.3.206' | |
| def features; %w(tiny small normal big huge) end |
This file contains hidden or 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
| rm -rf `find ./ -type d -name .svn ! -regex \.svn/. -print` |
This file contains hidden or 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
| for FILE in `find . -type f -name "*.html" -exec grep -l '"/stylesheets' \{\} \;` ; do perl -p -i -e 's/\"\/stylesheets/\".\/stylesheets/g' $FILE; done | |
| for FILE in `find . -type f -name "*.html" -exec grep -l '"/javascripts' \{\} \;` ; do perl -p -i -e 's/\"\/javascripts/\".\/javascripts/g' $FILE; done | |
| for FILE in `find . -type f -name "*.html" -exec grep -l '"/images' \{\} \;` ; do perl -p -i -e 's/\"\/images/\".\/images/g' $FILE; done | |
| for FILE in `find . -type f -name "*.js" -exec grep -l '"/javascripts' \{\} \;` ; do perl -p -i -e 's/\"\/javascripts/\".\/javascripts/g' $FILE; done |
This file contains hidden or 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
| git st | grep deleted: | awk '{print $3}' | xargs git rm |
This file contains hidden or 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 | |
| class CameraController < UIViewController | |
| def loadView | |
| self.view = UIImageView.alloc.init | |
| end | |
| def viewDidLoad | |
| BW::Device.camera.any.picture(media_types: [:movie, :image]) do |result| | |
| image = result[:original_image] | |
| image_view = UIImageView.alloc.init |
This file contains hidden or 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 | |
| class BluetoothController < UIViewController | |
| attr_accessor :session, :peer_id, :peers, :state, :text_field | |
| def viewDidLoad | |
| self.title = 'bluetooth test' | |
| self.view.backgroundColor = "#FFFFFF".to_color | |
| screen = UIScreen.mainScreen.bounds | |
| self.text_field = UITextField.alloc.initWithFrame [[0, 30], [200, 26]] |
OlderNewer