Skip to content

Instantly share code, notes, and snippets.

View japj's full-sized avatar

Jeroen Janssen japj

View GitHub Profile
@japj
japj / sample.html
Created March 2, 2016 21:19
sample rendering of biml syntax highlighting using rouge
<html>
<style type="text/css">
.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight {
color: #faf6e4;
background-color: #122b3b;
}
.highlight .gl {
color: #dee5e7;
@japj
japj / README.md
Created June 29, 2012 20:32
find recent packages using node-waf

This is an experiment to find recent nodejs packages using node-waf in order to have a good chance of 'fixing' those (i.e. switch to node-gyp)

@japj
japj / jsconf-eu-2011.md
Created October 2, 2011 09:17 — forked from mattpodwysocki/jsconf-eu-2011.md
JSConf.EU Slides
@japj
japj / bot.coffee
Created August 19, 2011 20:23 — forked from thejh/bot.coffee
My IRC bot, jhbot
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()
@japj
japj / alerts.js
Created July 21, 2011 20:48 — forked from isaacs/alerts.js
var follow = require("follow")
var seen = {}
follow({ db: "http://isaacs.ic.ht/registry"
, since: 20267
, include_docs: true }, function (er, update) {
if (er) throw er
var doc = update.doc
@japj
japj / custommain.js
Created July 16, 2011 20:00 — forked from creationix/custommain.js
A proposed hook into node.js to make deploying node based applications easy and not require re-compiles.
startup.customRuntimeMain = function () {
var path = NativeModule.require('path');
var custom = path.resolve(process.cwd(), process.argv[0] + ".js");
if (!path.existsSync(custom)) return;
process.argv[1] = custom;
};
@japj
japj / node-and-npm-in-30-seconds.sh
Created July 4, 2011 14:23 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl http://npmjs.org/install.sh | sh
@japj
japj / BespinServerAPI.txt
Created February 25, 2009 13:20
Bespin Server API
* Register
** '^/register/new/(?P<username>.*)$', 'POST'
*** input
username, email, password
*** output
{
}