Christian Sonne cers

View gist:2892353
1 2 3 4 5 6 7 8 9 10
diff --git a/bug-754344 b/bug-754344
index 3821f33..20b8221 100644
--- a/bug-754344
+++ b/bug-754344
@@ -1,13 +1,12 @@
# HG changeset patch
-# Parent f4981b5e1f7a1b7e951c7013a2bc30fb72c0e01c
+# Parent 58bc22e5354276912ee185dbf752b2532005d39c
# User Hernan Rodriguez Colmeiro <colmeiro@gmail.com>
try: -b o -p linux,linux64,macosx64,win32,win64 -u none -t none
View zscroll.html
1 2 3 4 5 6 7 8 9 10
<html>
<head>
<title>Scrolling along the Z-Axis</title>
<!--
Example from http://eng.wealtfront.com
Assumes browser window is sized at a height of 400px (the size of the black box).
-->
<style>
body{height:600px;}
#viewport {
View directory.js
1 2 3 4 5 6 7 8 9 10
CmdUtils.makeSearchCommand({
name: "Directory",
url: "http://www10.go.com.mt/edirnew_dev/modules/edir_checkquery.asp",
get postData() {
var query = this.__globalObject.noun_arb_text.split(",");
var data = {g_telephone:query[0]};
if (query.length > 1)
data.g_surname = query[1];
return data;
},
View gist:328419
1 2 3 4 5 6 7 8 9 10
function doStuff(doc) {
// must be run when document/resources are fully loaded
$("body",doc).css("background","red");
};
jetpack.tabs.onReady(function(doc){
$(this).load(function(){doStuff(doc);});
if (doc.readyState == "complete") {
doStuff(doc);
}
});
View gist:324723
1 2 3 4 5 6 7
function Post(){};
Post.prototype = {test : function test() console.log};
p = new Post();
p.test()("foobar"); // foobar
Post.prototype = {test : function test(a) {console.log(a)}};
p = new Post();
p.test("foobar"); // foobar
View exercise.js
1 2 3 4 5 6 7 8 9 10
CmdUtils.CreateCommand({
names: ["exercise twitter"],
description: "Makes you exercise your neck while reading Twitter.",
author: {
name: "Christian Sonne",
email: "cers@geeksbynature.dk",
homepage: "http://geeksbynature.dk",
},
license: "GPL",
homepage: "http://geeksbynature.dk",
View julian.js
1 2 3 4 5 6 7 8 9 10
CmdUtils.makeSearchCommand({
name: "Julian day calc",
url: "http://aa.usno.navy.mil/cgi-bin/aa_jdconv.pl",
postData: "FFX=2&ID=AA&jd={QUERY}&ZZZ=END",
preview: function(pblock, args) {
$.post(this.url,
this.postData.replace("{QUERY}",args.object.text),
function(d) { $(pblock).html(d); });
}
});
View ubiquity_msc_baseurl.diff
1 2 3 4 5 6 7 8 9 10
diff -r 344ae5a3aa11 ubiquity/modules/cmdutils.js
--- a/ubiquity/modules/cmdutils.js Wed Oct 21 18:17:42 2009 +0900
+++ b/ubiquity/modules/cmdutils.js Wed Oct 21 13:18:32 2009 +0200
@@ -1167,17 +1167,18 @@
template = "<dl class='list'>";
let max = Math.min(results.length, parser.maxResults || 4);
let {baseurl} = parser;
- let {escapeHtml, url} = Utils;
+ baseurl || (baseurl = url);
+ let {escapeHtml, uri} = Utils;
View dict.js
1 2 3 4 5 6 7 8 9
CmdUtils.makeSearchCommand({
name: "dict",
url: "http://www.dict.cc/?s={QUERY}",
parser: {
container: "#maincontent table:eq(2) tr:gt(2)",
title: "td:nth-child(2)",
preview: "td:nth-child(3)"
}
})
Something went wrong with that request. Please try again.