Skip to content

Instantly share code, notes, and snippets.

View uu59's full-sized avatar

uu59

View GitHub Profile
@uu59
uu59 / imgur.rb
Created April 12, 2011 06:55
imgur.com client likes gyazo.rb (required ImageMagick)
#!/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"
# -- coding: utf-8
# -- 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
# -- coding: utf-8
require "rubygems"
require "cool.io"
class SleepSort < Coolio::TimerWatcher
def initialize(num)
super(*num.to_f)
@num = num
end
[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"]
// 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) {
<!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>
# -- coding: utf-8
require "kyotocabinet"
class Stash
include Enumerable
def initialize(&block)
@buf = []
@filter = block
# -- 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
# -- coding: utf-8
=begin
Twitter trend plugin for earthquake.gem
⚡ :trend
trend of Japan
及川光博
#アメリカ版東方projectにありがちなこと
年齢にテンション
金麦のcm