$ rake about
About your application's environment
Ruby version 2.0.0 (x86_64-darwin12.4.0)
RubyGems version 2.1.9
Rack version 1.5
Rails version 4.0.1
JavaScript Runtime Node.js (V8)
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 String | |
| GLITCH_CHARS = ("\u0300".."\u036f").to_a | |
| def glitch | |
| self.each_char.reduce("") do |r, c| | |
| r + c + rand(2).times.map { GLITCH_CHARS.sample }.join('') | |
| end | |
| 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
| require 'oven' | |
| require 'big_bowl' | |
| class Bread | |
| def initialize | |
| first_ingredients = { | |
| 'Warm Water' => '220 ml', # add 5% more if half_milk | |
| 'flour' => '300 g' | |
| 'Yeast' => '6 g', | |
| 'Salt' => '6 g', |
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
| Lisa_Rose: | |
| Lady_in_the_Water: 2.5 | |
| Snakes_on_a_Plane : 3.5 | |
| Just_My_Luck: 3.0 | |
| Superman_Returns: 3.5 | |
| You_Me_and_Dupree: 2.5 | |
| The_Night_Litener: 3.0 | |
| Gene_Seymour: | |
| Lady_in_the_Water: 3.0 |
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
| var cnt=0; | |
| function killAds(){ | |
| var units=document.getElementsByClassName("ego_unit"); | |
| try{selectAll()}catch(e){} | |
| for(var i=0;i<units.length;i++){ | |
| if(units[i].innerHTML.match("広告"))try{findDisableButton(units[i])}catch(e){} | |
| } | |
| for(var i=0;i<units.length;i++){ | |
| var unit=units[i] | |
| if(unit.innerHTML.match("さんが"))continue; |
- 社内勉強会資料
ソフトウェアは資産なのか負債なのか - プログラマの思索 https://www.readability.com/articles/wwdszj2n
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
| #!/bin/bash | |
| # | |
| # Bash script to setup headless Selenium (uses Xvfb and Chrome) | |
| # (Tested on Ubuntu 12.04) trying on ubuntu server 14.04 | |
| # Add Google Chrome's repo to sources.list | |
| echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a /etc/apt/sources.list | |
| # Install Google's public key used for signing packages (e.g. Chrome) | |
| # (Source: http://www.google.com/linuxrepositories/) |
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:document.location='http://245cloud.com/?ad=true#mixcloud:'+ location.pathname |
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 | |
| # ghq: https://github.com/motemen/ghq | |
| # ghs: https://github.com/sona-tar/ghs | |
| # ghq get + ghq look(cd repo) | |
| # Usage: gcd git://example.com/repo.git | |
| function gcd { | |
| if [ ! -n "$1" ]; then | |
| echo "Usage: gcd git://example.com/repo.git" | |
| return; |