This file contains hidden or 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 request = require('request'), | |
querystring = require('querystring'); | |
var Note = function(key){ | |
this.key = key; | |
} | |
Note.prototype = new process.EventEmitter(); | |
var SimpleNote = function(email, passwd){ | |
this.email = email; |
This file contains hidden or 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
;;exec ExtendScript for InDesignCS4 and IllustratorCS4 via Emacs | |
(defvar cs:tmp-dir "/tmp/extscrt") | |
(defvar cs:tmp-file (concat cs:tmp-dir "/" "tmp.jsx")) | |
(defvar cs:app-scrt (concat cs:tmp-dir "/" "proc.scpt")) | |
(defvar cs:log-file (concat cs:tmp-dir "/" "tmp.log")) | |
(defvar cs:display-log-buffer "*CS4-log*") | |
;;respect to... | |
;;https://github.com/kanemu/extendscript-tmbundle/blob/master/Commands/Run%20CS4.tmCommand |
This file contains hidden or 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
//reload safari via applescript | |
//usage: | |
//var sys = require('sys'); | |
//var SafariReloader = require('./safari_reloader'); | |
//sys.puts('Hello! This is Main'); | |
//(new SafariReloader({ | |
// target:'safari', //or webkit | |
// onError:function(err){console.log(err.toString())}, | |
// onExit:function(sc){console.log('Safari Reloaded!')} | |
//}))(); |
This file contains hidden or 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://vimeo.com/22274600 | |
var term = require('node-terminal'); | |
var str = (function(){/* | |
我の諂ふべき人なし | |
我の組すべき党派なし | |
我の戴くべき僧侶なし | |
我の維持すべき爵位なし | |
我に事ふべきの神あり |
This file contains hidden or 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 node | |
//http://vimeo.com/22429969 | |
var fs = require('fs'); | |
var spawn = require('child_process').spawn; | |
var cap = "/path/to/cap.jpg"; | |
var glt = "/path/to/cap_glitch.jpg"; |
This file contains hidden or 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
##earthquake.ge plugin | |
##post url to instapaper.com | |
Earthquake.init do | |
_ = config[:instapaper] ||= {} | |
_[:user] ||= '' | |
_[:password] ||= '' | |
command :instapaper do |m| | |
tweet = twitter.status(m[1])["text"] |
This file contains hidden or 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
##earthquake.gem plugin | |
Earthquake.init do | |
command :matomete do |m| | |
m[1].split("\s").each do |i| | |
input(":open #{i}") | |
end | |
end | |
end |
This file contains hidden or 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 -*- | |
#earthquake.gem plugin | |
#javascript via phantomjs | |
require 'tempfile' | |
def do_bmklt(js,url) | |
tmp = Tempfile.new("tmpjs") | |
begin | |
tmp.puts js |

This file contains hidden or 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 -*- | |
#earthquake.gem plugin | |
#show 'df -H' result in name | |
module TwitterOAuth | |
class Client | |
def update_profile(params) | |
post('/account/update_profile.json', params) | |
end | |
end |