Skip to content

Instantly share code, notes, and snippets.

@vzvu3k6k
vzvu3k6k / twitter-suppress_signup_dialog.user.js
Created June 28, 2014 07:29
Twitter: Suppress signup dialog [userscript]
// ==UserScript==
// @name Twitter: Suppress signup dialog
// @description Yet another popup blocker
// @version 1.0
// @author vzvu3k6k
// @match https://twitter.com/*
// @run-at document-end
// @namespace http://vzvu3k6k.tk/
// @license CC0
// ==/UserScript==
@vzvu3k6k
vzvu3k6k / github_bots.md
Created June 27, 2014 02:45
GitHub bots

GitHubの開発支援ボット

いずれも試してない。

@vzvu3k6k
vzvu3k6k / codefix.rb
Last active August 29, 2015 14:03
Update your asciidoc to fit the new Asciidoctor's `inline literal passthrough` spec
# Since a1b1751, Asciidoctor no longer renders "それは`Promise.all`です。" as
# "...それは<code>Promise.all</code>です。...", but as "...それは`Promise.allです。...".
# This script updates your asciidoc to fit the new Asciidoctor behavior.
#
# resolves #892 match word characters defined by Unicode · a1b1751 · asciidoctor/asciidoctor
# https://github.com/asciidoctor/asciidoctor/commit/a1b17518d6f6#diff-9f476fe67d53af1b92adf5d43d06183eL874
#
# Breaking changes in inline code literal? · Issue #984 · asciidoctor/asciidoctor
# https://github.com/asciidoctor/asciidoctor/issues/984
#
# mode: ruby
# license: CC0
# Set the path of this file to BUNDLE_GEMFILE.
# Then Bundler will load Gemfile as usual,
# and next loads Gemfile.local only if it exists
# in the same directory as Gemfile.
#
# If Gemfile.local is loaded, lockfile is created
# as Gemfile.local.lock. Otherwise, lockfile is
@vzvu3k6k
vzvu3k6k / collections.md
Created May 19, 2014 13:46
A collection of README badge collections
@vzvu3k6k
vzvu3k6k / tumblr-empty_trails_on_dashboard.user.js
Created April 25, 2014 16:20
Tumblr: Empty trails on dashboard
// ==UserScript==
// @name Tumblr: Empty trails on dashboard
// @description It won't work and you won't need it because of Tumblr.GhostList. /* Remove old posts on auto pagination. Similar to http://joodle.tumblr.com/post/14352059524/supertumblr, but works more efficiently. */
// @match http://www.tumblr.com/dashboard
// @match http://www.tumblr.com/dashboard/*
// @match https://www.tumblr.com/dashboard
// @match https://www.tumblr.com/dashboard/*
// @version 1.1
// @license public domain
// ==/UserScript==
require 'benchmark'
def make_hash list
Hash[list.map { |k| [k, true] }]
end
TRY_NUM = 1000000
{
INDENT_KW: [:begin, :def, :case, :module, :class, :do, :for], # largest
# This is a simple test for https://github.com/zenspider/enhanced-ruby-mode/pull/47
#
# 0. Install rbenv
# 1. Save this as "test.rb"
# 2. Install rbenv-each (https://github.com/chriseppstein/rbenv-each)
# 3. Run `rbenv each ruby test.rb`
require 'ripper'
result = Ripper.lex <<HERE
@vzvu3k6k
vzvu3k6k / qiita-select-code-block.user.js
Last active December 22, 2015 06:49
Qiitaの記事内のコード部分を楽にコピペする ref: http://qiita.com/vzvu3k6k/items/0a0abb0e848ed2c10651
// ==UserScript==
// @name Qiita: Select code block
// @description コードの右上のアイコンをクリックすると選択される
// @version 1.1
// @match http://qiita.com/*
// @namespace http://qiita.com/vzvu3k6k/
// @license Public Domain
// ==/UserScript==
var style = document.createElement("style");