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
<?php | |
define("YESTERDAY_DT", "2014-06-01 00:00:00"); | |
function getCurrentTime() { | |
$dt = new DateTime(); | |
$dt->setTimeZone(new DateTimeZone('Asia/Tokyo')); | |
return $dt->format('Y-m-d H:i:s'); | |
} | |
function getFileList($dir) { |
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
URI::InvalidURIError - bad URI(is not URI?): jvgrep%2520%25E3%2581%25AE%25E5%25AF%25BE%25E6%258A%2597%25E9%25A6%25AC%25E3%2581%25A8%25E3%2581%2597%25E3%2581%25A6%25E3%2581%25AF%2520pt%2520https://github.com/monochromegane/the_platinum_searcher%2520%25E3%2581%25A7%25E3%2581%2599%25E3%2581%258B%25E3%2581%25AD%25E3%2580%2582: | |
/app/vendor/ruby-2.1.0/lib/ruby/2.1.0/uri/common.rb:176:in `split' | |
/app/vendor/ruby-2.1.0/lib/ruby/2.1.0/uri/common.rb:211:in `parse' | |
/app/vendor/ruby-2.1.0/lib/ruby/2.1.0/uri/common.rb:747:in `parse' | |
/app/vendor/bundle/ruby/2.1.0/gems/mechanize-2.5.1/lib/mechanize/http/agent.rb:621:in `rescue in resolve' | |
/app/vendor/bundle/ruby/2.1.0/gems/mechanize-2.5.1/lib/mechanize/http/agent.rb:618:in `resolve' | |
/app/vendor/bundle/ruby/2.1.0/gems/mechanize-2.5.1/lib/mechanize/http/agent.rb:214:in `fetch' | |
/app/vendor/bundle/ruby/2.1.0/gems/mechanize-2.5.1/lib/mechanize.rb:407:in `get' | |
nicothumb.rb:150:in `get_image_url' | |
nicothumb.rb:197:in `do_maji_sugoi' |
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 PlugAPI = require('plugapi'), | |
AUTH = 'BmzRZ0J6sYBAUC3/7C1o4gzZlU8=?_expires=STE0MTIwNDg2NjcKLg==&user_id=Uyc1MzNjZDkxYjNiNzkwMzdiYWI1M2Q5ZDknCnAxCi4=', | |
ROOM = 'lingr'; | |
var bot = new PlugAPI(AUTH); | |
bot.connect(ROOM); | |
bot.on('roomJoin', function(room) { | |
console.log("Joined " + room); | |
}); |
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 python | |
import sys | |
from gntp.notifier from GrowlNotifer | |
def notify(title, message, icon): | |
n = pynotify.Notification(title, message) | |
if len(icon) > 0: | |
f = urllib.urlopen(icon) | |
data = f.read() |
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
let s:save_cpo = &cpo | |
set cpo&vim | |
let s:V = vital#of('unite_sbtimport') | |
let s:List = s:V.import('Data.List') | |
let s:File = s:V.import('System.File') | |
let s:Cache = s:V.import('System.Cache') | |
let s:ProMan = s:V.import('ProcessManager') |
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
let s:save_cpo = &cpo | |
set cpo&vim | |
let s:V = vital#of('unite_sbtimport') | |
let s:List = s:V.import('Data.List') | |
let s:File = s:V.import('System.File') | |
let s:Cache = s:V.import('System.Cache') | |
let s:ProMan = s:V.import('ProcessManager') |
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
let s:V = vital#of('vital') | |
let s:List = s:V.import('Data.List') | |
let s:File = s:V.import('System.File') | |
let s:Cache = s:V.import('System.Cache') | |
let s:ProMan = s:V.import('ProcessManager') | |
function! sbtimport#start_sbt() | |
call s:ProMan.touch('sbt', 'sbt') | |
endfunction |
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
package io.github.akechi.sugoicraft | |
import org.scalatest.FunSuite | |
class HelloSuite extends FunSuite { | |
test("""traditional "hello, world" from K&R""") { | |
assert(Hello.greeting === "hello, world") | |
} | |
} |
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
language: scala | |
scala: | |
- 2.10.3-RC3 |
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
set nocompatible | |
scriptencoding utf-8 | |
set fileencodings=utf-8,cp932,euc-jp | |
set encoding=utf-8 | |
set clipboard+=unnamed | |
set nrformats-=octal | |
set timeout timeoutlen=3000 ttimeoutlen=100 | |
set hidden |