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
| # 65 bytes FizzBuzz code | |
| (1..99).map{|i|puts"#{a=i%3<1?:Fizz:nil}#{i%5<1?:Buzz:a&&''||i}"} |
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
| c=0;'abracatabra'.each_char{|e|e=='a'&&c+=1};puts c |
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
| # http://estar.jp/.pc/_novel_view?w=13428686 を読む | |
| require 'open-uri' | |
| require 'yaml' | |
| page = ARGV[0] || 1 | |
| page.upto(121).each do |page| | |
| data = YAML.load(open("http://estar.jp/api/get_novel_page_info?_=1336496080883&w=13428686&p=#{page}").read) | |
| puts "======== #{data["subject"].gsub(/<.*?>/,'')} ========" | |
| puts data["content"].gsub(/<.*?>/,'') |
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 'mechanize' | |
| require 'pit' | |
| config = Pit.get("keiojp",:require => { | |
| "account" => "Your keio.jp account", | |
| "password" => "Your keio.jp password" | |
| }) | |
| @agent = Mechanize.new |
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 'tw' | |
| Tw::Client.new.auth | |
| c = Twitter::Client.new | |
| (1..99).each do |i| | |
| Thread.new do | |
| begin | |
| sn = "yoned_#{i}" | |
| c.block(sn) | |
| 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
| 「このまま眠りつづけて死ぬ」が無視するbot系サービス一覧(2013.11.16現在)です。 | |
| すでに終了しているサービスが複数含まれていますが、めんどくさいので更新していません。 | |
| このテキストファイルが最新の状態で維持される保証もありません。 | |
| なるほど四時じゃねーの | |
| なるほど○○じゃねーの | |
| ファボッキー | |
| \日が昇るぞ/ | |
| コミケ n 日目 | |
| 毎日ちゃんとまいんちゃんと |
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:$('.file .data').hide();$('.file .image').hide();$('.file .meta').click(function(){var p = $(this).parents('.file');p.find('.data').toggle();p.find('.image').toggle();}) |
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
| // ==UserScript== | |
| // @name IgnoreDiffUnityFilesOnGitHub | |
| // @namespace http://ymrl.net/ | |
| // @include *://github.com/*/*/pull/*/files | |
| // @include *://github.com/*/*/commit/* | |
| // @require http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js | |
| // ==/UserScript== | |
| (function () { | |
| var ignore = ["\\.unity", "\\.prefab", "\\.meta", "\\.dae"]; |
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
| setInterval(function(){ | |
| var g=Game,h=g.goldenCookie,o=g.ObjectsById,u=g.UpgradesInStore, | |
| s=o.concat(u).sort(function(a,b){return a.bought-b.bought;}), | |
| l=s.length,i; | |
| g.ClickCookie(); | |
| for(i=0;i<l;i++){s[i].buy();} | |
| h.life>0&&h.click(); | |
| },10); |
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 'sinatra' | |
| get('/') { erb :index } | |
| post('/') { erb :index } | |
| get("/login") { erb :login } | |
| get("/other_with_password") { erb :other_with_password } | |
| get("/same_name_with_password") { erb :same_name_with_password } | |
| get("/same_name_with_another_password") { erb :same_name_with_another_password } | |
| get("/same_name_with_password_and_disabled_password") { erb :same_name_with_password_and_disabled_password } | |
| get("/disabled_password_hidden") { erb :disabled_password_hidden } |