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
#!/bin/sh | |
account=s1111372 | |
curl -# 'http://www.open.coins.tsukuba.ac.jp/status/coins/'|sed -e 's/<\/tr>/\ | |
/g'|grep OK|sed -e 's/^.*<td>\([^>]*.jp\).*$/\1/g'|egrep '^acacia[0-9][0-9]|^burnet[0-9][0-9]|^cosmos[0-9][0-9]' > coins_servers | |
line=`wc -l coins_servers| awk '{print $1}'` | |
rand=`expr $RANDOM % $line + 1` | |
liv=`awk NR==$rand < coins_servers` |
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
" choosewin {{{ | |
map t <Plug>(choosewin) | |
let g:choosewin_statusline_replace = 0 | |
let g:choosewin_overlay_enable = 1 | |
let g:choosewin_overlay_clear_multibyte = 1 | |
let g:choosewin_blink_on_land = 0 | |
let g:choosewin_label = "fgtrdsa" | |
let g:choosewin_tablabel = "123456789" | |
let g:choosewin_keymap = { |
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
# A sample Gemfile | |
source "https://rubygems.org" | |
gem "selenium-webdriver" |
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
# A sample Gemfile | |
source "https://rubygems.org" | |
gem "google-api-client" | |
mem "thin" |
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 gist_link | |
// @namespace http://github.com/uzimith | |
// @include https://github.com/* | |
// @include http://github.com/* | |
// ==/UserScript== | |
(function () { | |
console.log("test"); | |
var vcardLi = document.querySelector('.vcard-details li'); | |
var url = 'http://gist.github.com' + location.pathname; |
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
import Control.Applicative | |
import System.Directory | |
main :: IO () | |
main = do | |
files <- lines <$> getContents | |
mapM_ removeFile files |
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 iTerm = Application("iTerm"); | |
var Finder = Application("Finder"); | |
var selection = [].slice.call(Finder.selection()); | |
var names = selection.map(function(item){ | |
return item.url(); | |
}); | |
iTerm.activate(); | |
var term = iTerm.currentTerminal(); |
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
_ = require 'lodash' | |
gulp = require 'gulp' | |
plumber = require 'gulp-plumber' | |
util = require 'gulp-util' | |
browserify = require 'browserify' | |
source = require 'vinyl-source-stream' | |
streamify = require 'gulp-streamify' | |
watchify = require 'watchify' | |
SOURCE_DIR = './source/javascripts/_src/' |
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
def markdown(content) | |
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, autolink: true, tables: true) | |
markdown.render(content) | |
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
def gist(url) | |
"<script src='#{url}.js'></script>" | |
end |
OlderNewer