for(;s=readline();print(s))for(;!s[19];)s=" "+s+"\0"
for(;s=readline();)print(" ".slice(s.length/2),s)
main(c,s){for(;gets(s);puts())memset(s-c,32,c=10-strlen(s)/2);}
main(c,s){for(;gets(s);printf("%*s\n",10-c/2+c,s))c=strlen(s);}
@-moz-document url("chrome://xqjs/content/xqjs.xul") { | |
#code{ | |
font-size: 11pt !important; | |
font-family: "DejaVu+IPAG" !important; | |
} | |
} |
/* Run this from your error console. WARNING: removes tabs from their existing groups! */ | |
var Cc = Components.classes; | |
var Ci = Components.interfaces; | |
var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator); | |
var winEnum = wm.getEnumerator("navigator:browser"); | |
while (winEnum.hasMoreElements()) { | |
var win = winEnum.getNext(); | |
win.TabView._initFrame(function() { | |
var contentWindow = win.TabView._window; | |
contentWindow.UI.reset(); |
/* Universal Subtitles v0.72a */ | |
CmdUtils.CreateCommand({ | |
names: ["subtitle"], | |
description: "Add subtitles to any web video using open standards.", | |
help: "Open a video or select an URL and type subtitle", | |
author: { | |
name: "Michael Baer", | |
homepage: "http://twitter.com/shaytards", | |
}, | |
license: "GPL", |
CmdUtils.CreateCommand({ | |
names: ["java"], | |
arguments: [{role: "object", | |
nountype: noun_arb_text, | |
label: "search criteria"}], | |
icon: "http://www.sun.com/favicon.ico", | |
preview: "Searches The Java 6 API.", | |
help: "Enter the name of the Java class or package for which you would like to see the documentation.", | |
author: {name: "KS", email: "[email protected]"}, |
// ==uc== | |
// @include * | |
// @exclude chrome://browser/content/preferences/preferences.xul | |
// ==/uc== | |
(function Bug330458() { | |
var orgLoadOverlay = document.loadOverlay; | |
var queue = []; | |
var loading = false; |
// Coffee Script compiler wrapper for WSH JScript (must be placed in the same directory as coffee-script.js) | |
// Usage: cscript coffee-maker.js [--watch] file | |
// inspired by http://kennyj-jp.blogspot.com/2011/01/coffeescriptwindows.html | |
var fs = WScript.CreateObject("Scripting.FileSystemObject"); | |
var scriptPath = WScript.ScriptFullName.slice( | |
0, -WScript.ScriptName.length); | |
eval(fs.OpenTextFile(scriptPath + "coffee-script.js", 1).ReadAll()); | |
function compileFile(file) { |
for(;s=readline();print(s))for(;!s[19];)s=" "+s+"\0"
for(;s=readline();)print(" ".slice(s.length/2),s)
main(c,s){for(;gets(s);puts())memset(s-c,32,c=10-strlen(s)/2);}
main(c,s){for(;gets(s);printf("%*s\n",10-c/2+c,s))c=strlen(s);}
coffee = require 'coffee-script' | |
https = require 'https' | |
npm = require 'npm' | |
Irc = require 'irc-js' | |
cradle = require 'cradle' | |
{GitHubApi} = require 'github' | |
request = require 'request' | |
gitHubApi = new GitHubApi() | |
githubIssueApi = gitHubApi.getIssueApi() | |
githubObjectApi = gitHubApi.getObjectApi() |
// A response to jashkenas's fine proposal for minimalist JavaScript classes. | |
// Harmony always stipulated classes as sugar, so indeed we are keeping current | |
// JavaScript prototype semantics, and classes would only add a syntactic form | |
// that can desugar to ES5. This is mostly the same assumption that Jeremy | |
// chose, but I've stipulated ES5 and used a few accepted ES.next extensions. | |
// Where I part company is on reusing the object literal. It is not the syntax | |
// most classy programmers expect, coming from other languages. It has annoying | |
// and alien overhead, namely colons and commas. For JS community members who |
_ = require 'underscore' | |
{Assign, Value, Literal, Access, Block, Class, Op, Obj, Arr, For, Index, Call, Return, If, Throw} = nodes = require '../nodes' | |
exports.originals = originals = {} | |
exports.codeblock = codeblock = (block) -> | |
return block unless block? | |
if typeof block is 'function' |