Moved to https://github.com/ucnv/diff-for-gist.github. This script is also available at .
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
--- lib-jlp.js Tue Mar 17 20:51:18 2009 | |
+++ lib-jlp.js.modified Tue Mar 17 20:51:52 2009 | |
@@ -28,7 +28,7 @@ | |
} | |
} | |
JLP.MAService.prototype.parse = function(text) { | |
- var yql = "select * from xml where url='http://jlp.yahooapis.jp/MAService/V1/parse?appid=AgeuXFaxg66_am8.xytKxMt0mqfH_hvVvSvliD_iNu10KTUtmtvvfIzct9Oh&sentence=" + encodeURIComponent(text) + "'"; | |
+ var yql = "select * from xml where url='http://jlp.yahooapis.jp/MAService/V1/parse?appid=AgeuXFaxg66_am8.xytKxMt0mqfH_hvVvSvliD_iNu10KTUtmtvvfIzct9Oh&sentence=" + escape(text) + "'"; | |
var url = 'http://query.yahooapis.com/v1/public/yql?q=' + encodeURIComponent(yql) + '&format=json&callback='; | |
var content = wget(url); |
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
// http://ido.nu/kuma/2007/10/01/diff-onp-javascript-implementation/ | |
/* | |
Copyright (c) 2007, KUMAGAI Kentaro | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | |
3. Neither the name of this project nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. |
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
// ==UserScript== | |
// @name Open tako3 | |
// @namespace http://userscripts.org/users/ucnv | |
// @include * | |
// @require http://tako3.com/js/getako | |
// ==/UserScript== | |
GM_registerMenuCommand('Open tako3', function() { | |
GM_xmlhttpRequest({ | |
url: 'http://tako3.com/json/all', |
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
// based on <http://muumoo.jp/news/2007/07/28/0matanicovideo.html> | |
// | |
// ==UserScript== | |
// @name mata PUREkev | |
// @namespace http://userscripts.org/users/ucnv | |
// @include http://www.purekev.com/ | |
// ==/UserScript== | |
(function(){ | |
Number.prototype.z = function(len){ |
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
require 'net/http' | |
$KCODE = 'u' | |
unless ARGV.size == 2 then | |
puts 'Usage: ruby spritzer.rb USERNAME PASSWORD'; exit | |
end | |
username, password = ARGV | |
http = Net::HTTP.new 'stream.twitter.com' | |
req = Net::HTTP::Get.new '/spritzer.xml' |
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
{ | |
url: '^http://store\.exonemo\.com/antibot/cgi/viewSharedDesigns\.cgi', | |
nextLink: '//a[text()="»"]', | |
pageElement: '//div[@class="items"]/..', | |
exampleUrl: 'http://store.exonemo.com/antibot/cgi/viewSharedDesigns.cgi', | |
} |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | |
<meta> | |
<sampleQuery>use "http://gist.github.com/133124.txt" as c; select * from c where q="雪が降って嬉しい"</sampleQuery> | |
</meta> | |
<bindings> | |
<select itemPath="" produces="JSON"> | |
<urls><url/></urls> | |
<inputs> | |
<key id="q" type="xs:string" paramType="variable" required="true"/> |
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
// ==UserScript== | |
// @name Permanize Monkey | |
// @namespace http://userscripts.org/users/40991 | |
// @description GM port of the Jetpack app http://app.permanize.org/ | |
// @include * | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js | |
// ==/UserScript== | |
// It's based on http://permanize.appspot.com/jetpack/permanize.js |
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 ruby | |
# Usage: ruby datamoshing.rb input.avi > output.avi | |
input = ARGV.shift | |
data = File.open(input) {|f| f.read } | |
header, main = data.split('movi') | |
frames, indices = main.split('idx1').map do |x| | |
x.split(/(00dc)/) | |
end |