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
#!/usr/bin/env ruby | |
# from http://sirupsen.com/a-simple-imgur-bash-screenshot-utility/ | |
API_KEY = "486690f872c678126a2c09a9e196ce1b" | |
# setting | |
browser_cmd = 'open' | |
# or directly browser_cmd = 'chromium-browser' | |
require "erb" |
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 | |
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 "fileutils" | |
require "digest/md5" | |
Earthquake.init do | |
dir = File.join(File.dirname(__FILE__), "userimage") | |
output do |item| | |
next if item.nil? || item["user"].nil? | |
begin |
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 "cool.io" | |
class SleepSort < Coolio::TimerWatcher | |
def initialize(num) | |
super(*num.to_f) | |
@num = num | |
end |
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
[submodule "unite"] | |
path = unite.vim | |
url = git://github.com/Shougo/unite.vim.git | |
[submodule "unite-script"] | |
path = unite-script | |
url = https://github.com/hakobe/unite-script | |
[submodule "neverland-vim-theme"] | |
path = neverland-vim-theme | |
url = https://github.com/trapd00r/neverland-vim-theme.git | |
[submodule "vim-css3-syntax"] |
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://i.imgur.com/Gtr6C.png | |
(function(){ | |
liberator.echo("hello hbc"); | |
const RE_URL = new RegExp('https?://[^/]+/?.*?(?:¥n| |$|¥Z)', 'ig'); | |
function escape_breaker(str){ | |
// liberator.echo print plain text if invalid formed HTML given | |
var re = new RegExp('[><&+]', 'g'); | |
return str.replace(re, function(c,p,full) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>jQuery Mobile Docs - Features</title> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.css" /> | |
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/> | |
<script src="http://code.jquery.com/jquery-1.6.1.min.js"></script> | |
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script> |
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 "kyotocabinet" | |
class Stash | |
include Enumerable | |
def initialize(&block) | |
@buf = [] | |
@filter = block |
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 | |
=begin | |
goo.gl shortener plugin without API Keys. | |
It based on https://gist.github.com/905426 | |
⚡ long long long long text over 140+ http://www.yahoo.co.jp/ | |
update 'long long long long text over 140+ http://goo.gl/r5Pl' [Yn] | |
Or manually, following command is put shorten URLs into history |
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 | |
=begin | |
Twitter trend plugin for earthquake.gem | |
⚡ :trend | |
trend of Japan | |
及川光博 | |
#アメリカ版東方projectにありがちなこと | |
年齢にテンション | |
金麦のcm |