Skip to content

Instantly share code, notes, and snippets.

View cscott's full-sized avatar

C. Scott Ananian cscott

View GitHub Profile
@cscott
cscott / check.js
Created May 21, 2015 22:20
Check first character of vocaloid API response
#!/usr/bin/env node
var r = require("request");
var url = "http://wiki.vocaloid.de/api.php?format=json&action=query&meta=siteinfo&siprop=namespaces%7Cnamespacealiases%7Cmagicwords%7Cfunctionhooks%7Cextensiontags%7Cgeneral%7Cinterwikimap%7Clanguages%7Cprotocols&rawcontinue=1";
r({ url: url, json: false }, function(err, res, body) {
console.log("First character is: ", body.charCodeAt(0));
});
(01:01:10 PM) James_F: subbu: <ref> in a <ref> is invalid.
(01:01:20 PM) James_F: As is {{#tag:ref}} in a <ref>?
(01:01:35 PM) subbu: James_F, yes, that is what i meant
(01:01:38 PM) James_F: Or something hideously stupid.
(01:01:43 PM) James_F: Yay wikitext. :-(
(01:01:51 PM) subbu: but, yes,you are right ... <ref> in <ref> is invalid.
(01:06:28 PM) neilpquinn [~neilpquin@198.73.209.5] entered the room.
(01:07:07 PM) divec|away is now known as divec
(01:08:18 PM) TrevorParscal is now known as TrevorP|Away
(01:08:37 PM) cscott-free: i should add that to my list of "101 crazy ways to escape wikitext"
@cscott
cscott / README.md
Last active September 15, 2015 16:41 — forked from atdt/wp-telnet.js
Wikipedia Telnet Server

Wikipedia Telnet Server

[![NPM][NPM1]][NPM2]

Sometime, browsing over http/https is just too insecure. For those times when you must absolutely guarantee no executable code will be served to you, we present:

Wikipedia via [telnet].

Uses the nice [mw-ocg-texter] package to do pleasant Unicode rendering

@cscott
cscott / keybase.md
Created February 8, 2016 23:14
Keybase proof of identify

Keybase proof

I hereby claim:

  • I am cscott on github.
  • I am cscott (https://keybase.io/cscott) on keybase.
  • I have a public key ASCEVlDaiV8nejfMQqVjKskx-74Gn-GBqDVQyCGC4DBlDAo

To claim this, I am signing this object: