Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeroen Janssen japj

  • Netherlands
View GitHub Profile
@japj
japj / sample.html
Created Mar 2, 2016
sample rendering of biml syntax highlighting using rouge
View sample.html
<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 Jun 29, 2012
find recent packages using node-waf
View README.md

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 / bot.coffee
Created Aug 19, 2011 — forked from thejh/bot.coffee
My IRC bot, jhbot
View bot.coffee
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()
View 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 Jul 16, 2011 — forked from creationix/custommain.js
A proposed hook into node.js to make deploying node based applications easy and not require re-compiles.
View custommain.js
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 Jul 4, 2011 — 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.
View node-and-npm-in-30-seconds.sh
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
View BespinServerAPI.txt
* Register
** '^/register/new/(?P<username>.*)$', 'POST'
*** input
username, email, password
*** output
{
}