Skip to content

Instantly share code, notes, and snippets.

View gotin's full-sized avatar

Go Kojima gotin

  • Tokyo/Japan
View GitHub Profile
@gotin
gotin / timer
Created January 9, 2014 16:41
Timer command using ruby and terminal-notifier for Mac OS X 10.8 or higher
#!/usr/bin/env ruby
require 'rubygems'
require 'terminal-notifier'
require 'active_support/core_ext'
t = (ARGV[0].to_f) || 1 rescue 1
t = t.minute.since
message = ARGV[1] || "It's the time now"
while Time.now <= t
@gotin
gotin / q.js
Created January 29, 2009 14:46 — forked from javascripter/q.js
var q;
(function () {
function forEach(object, fun, self) {
for (var k in object) fun.call(self, object[k], k, object);
}
function clone(object) {
var child = {__proto__: object};
try {
'' + instance;
} catch(error) {
// ==UserScript==
// @name chain test
// @namespace gomaxfire.dnsdojo.com
// @require http://jqueryjs.googlecode.com/files/jquery-1.2.6.js
// @require http://gomaxfire.dnsdojo.com/jsrails/chain.js
// @include *
// ==/UserScript==
function log(s){console.log(s)};
//function log(s){document.write(s)};