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
/* appjet:version 0.1 */ | |
import('lib-html-xpath'); | |
import('lib-json'); | |
import("lib-uri"); | |
function get_main() { | |
print(P(A({ | |
href: '/pagelinks?url=' + encodeURIComponent('http://google.com/') | |
}, appjet.appName))); |
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
/* appjet:version 0.1 */ | |
import("lib-jsunit-2-2"); | |
import(appjet.appName); | |
print(H1(appjet.appName)); | |
print(H2('Usage')); | |
print(P(CODE("""import("lib-uri"); | |
var uri = new URI('http://example.com/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
import sys | |
import echonest.audio as audio | |
def main(filename): | |
inputFile = audio.LocalAudioFile(filename) | |
inputChunks = inputFile.analysis.beats | |
modifiedAudio = audio.getpieces(inputFile, sorted(inputChunks, compare)) | |
modifiedAudio.encode('sorted.mp3') |
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
// ==UserScript== | |
// @name wescript show twitter icon | |
// @namespace http://taizooo.tumblr.com/ | |
// @description show twitter icon on wescript | |
// @include http://wescript.net/* | |
// @require http://gist.github.com/raw/3242/9dc0cdee5e975d275c7ab71f581d272eb316674f/dollarX.js | |
// ==/UserScript== | |
// respect http://beta.wescript.net/scripts/3124 | |
// thx!!! mattn (http://mattn.kaoriya.net/) | |
// icon from http://usericons.relucks.org/ |
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 ruby | |
require 'rubygems' | |
require 'scissor' | |
if ARGV.size != 3 | |
puts "usage: #$0 infile textfile outfile" | |
exit | |
end | |
src, textfile, dst = ARGV |
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
// ==UserScript== | |
// @name gist: replace title with filename | |
// @namespace http://d.hatena.ne.jp/youpy/ | |
// @include http://gist.github.com/* | |
// @include https://gist.github.com/* | |
// @exclude http://gist.github.com/gists | |
// @exclude https://gist.github.com/gists | |
// @require https://gist.github.com/3242.txt | |
// ==/UserScript== |
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
// JSActions startup | |
var windowManager = Components.classes["@mozilla.org/appshell/window-mediator;1"] | |
.getService(Components.interfaces.nsIWindowMediator); | |
var win = windowManager.getMostRecentWindow("navigator:browser"); | |
var contentWindow = getBrowser().contentWindow; | |
var url = contentWindow.location; | |
function testMatch(url) { | |
return function(script) { |
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
/* appjet:version 0.1 */ | |
var usage = """import("lib-jlp"); | |
import("lib-json"); | |
var maService = new JLP.MAService(); | |
print(P(CODE(JSON.stringify(maService.parse('庭には二羽ニワトリがいる。'))))); | |
"""; | |
print(H1(appjet.appName)); | |
print(P('Handy library to use ', |
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
/* appjet:version 0.1 */ | |
print(H1(appjet.appName)); | |
/* appjet:library */ | |
String.prototype.fix = function() { | |
var newString = []; | |
var x, y, z, c; | |
for(var i = 0; i < this.length; i ++) { |