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
// g100pon #13 gmailからメールを受信する | |
// IMAPでメールのリストつくるまであとはお好みで出力的なかんじです | |
import javax.mail.Session | |
import javax.mail.Folder | |
import java.util.Properties | |
@Grab(group="javax.mail", module="mail", version="latest.integration") | |
def user = "[email protected]" |
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
//g100pon #41 スクリプトを実行するスクリプト | |
//すごいシンプルにけどパワフルみたいなかんじで | |
Eval.me(new File(args[0]).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
// g100pon #69 動的なメソッド追加 | |
class MyClass{ | |
def say = { | |
println "g100pon!!" | |
} | |
} | |
def cls = new MyClass() | |
cls.say() |
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
str = [] | |
5.times{str<<"がんばれベアーズ"} | |
scrt = <<SCRT | |
tell application "Quick Search Box" | |
activate | |
show large type \"#{str*"\n"}\" | |
end tell | |
SCRT | |
`osascript -e '#{scrt}'` |
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
/* | |
original "Translation IF/ELSE´s to Portuguese" | |
http://groovyconsole.appspot.com/script/278001 | |
Translation IF/ELSE´s to Japanese | |
*/ | |
/* The Experiment For Symbolized Program Language with Groovy */ | |
・ = { exp, c -> | |
if (exp){ |
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
/* | |
Kiwanuji on JVM | |
http://kihwanujish.jottit.com/ | |
*/ | |
バブン = {println it} | |
シココケ = {a,b-> assert a==b} | |
バブン "オグモ ハイジ" | |
ラダ = "ゲボ" | |
シココケ(ラダ,"ゲボ") |
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/ruby | |
%w(rubygems growl-logger optparse).each{|x| require x} | |
MEMO_FILE_DIR = "/Volumes/HDD/Dropbox/PlainText" | |
EDITOR_CMD = "gvim" | |
opt = OptionParser.new | |
o = Hash.new | |
begin | |
opt.on('-t'){|v| o[:t] = v} |
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
#target InDesign | |
//DTPっぽいことをスクリプティングするためのユーティリティ | |
DTP = this.DTP = {}; | |
//TextFrameのなかを文字列検索してHitした結果を返す | |
//arguments: o => TextFrameオブジェクトなど, str => 検索する文字列(配列も可) | |
//戻るのはText, Word, Characterなど | |
/* ex. | |
var ret = DTP.filter(app.activeDocument.selection[0], "("); |
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
<key>/opt/groovy/bin/groovy</key> | |
<dict> | |
<key>args</key> | |
<array> | |
<string>-e</string> | |
<string>%</string> | |
</array> | |
<key>script</key> | |
<array> | |
<string>println System.in</string> |
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 http = require('http'); | |
var spawn = require('child_process').spawn; | |
var server = http.createServer(function(req,res){ | |
res.writeHead(200, {'Content-Type':'text/plain'}); | |
var doing = spawn("/Library/Application\ Support/Titanium/mobilesdk/osx/1.5.1/iphone/builder.py", ["run", __dirname]); | |
doing.stdout.on('data', function(data){ | |
res.write(data); | |
console.log(data.toString()); |
OlderNewer