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
# -- coding: utf-8 | |
# inspired by http://d.hatena.ne.jp/takuya_1st/20120418/1334778323 | |
require "tempfile" | |
require "rubygems" | |
require "mini-smtp-server" | |
require "pony" | |
require "pit" | |
require "mail" |
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
$('input[name="new_version"]').on('change', function(){ | |
$('input[name="old_version"][value="'+(this.value - 1)+'"]').check(); | |
}); |
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
// ==UserScript== | |
// @name Better Google Groups | |
// @namespace http://uu59.org/ | |
// @version 1.0.0 | |
// @include http://productforums.google.com/forum/* | |
// ==/UserScript== | |
function addStyle(css) { | |
var id = "better-google-groups"; | |
var style = document.querySelector('#' + id); |
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
{ | |
"manifest_version": 2, | |
"name": "techcrunch", | |
"version": "1.1.1", | |
"description": "説明", | |
"icons": | |
{ | |
}, | |
"content_scripts": [ | |
{ |
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
vendor/ | |
.bundle/ | |
node_modules/ | |
Gemfile.lock |
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
// ==UserScript== | |
// @name avoid awesome selection | |
// @namespace http://uu59.org/ | |
// @version 1.0.0 | |
// @include * | |
// ==/UserScript== | |
// tested on http://www.vimninjas.com//2012/08/28/vim-for-rubyists-part-1/ | |
function addStyle(css) { |
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
# http://r7kamura.hatenablog.com/entry/2012/09/02/185129 | |
# https://gist.github.com/3595761 | |
# https://gist.github.com/3595759 | |
require "spec_helper" | |
describe Avalon::Validator do | |
let(:validator) do | |
proc do |arg| |
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
# -- coding: utf-8 | |
require "rubygems" | |
require "grill" | |
Grill.implant <<-GEM | |
source :rubygems | |
gem 'capybara', :require => ["capybara", "capybara/dsl"] | |
gem "capybara-webkit" | |
gem "headless" |
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
tes |
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 _submit = HTMLFormElement.prototype.submit; | |
HTMLFormElement.prototype.submit = function() { | |
var uri = document.createElement('a'); | |
uri.href = this.action; | |
if(uri.host == location.host) { | |
_submit.call(this); | |
return ; | |
} | |
if(confirm('will submit to ' + uri.href + ', acceptable?')) { | |
_submit.call(this); |