Skip to content

Instantly share code, notes, and snippets.

@robertkowalski
robertkowalski / plusone-links.js
Created Jan 8, 2012 — forked from robin-drexler/plusone-links.js
show plus one count of links
View plusone-links.js
@robertkowalski
robertkowalski / scraper.js
Created Jul 18, 2012
node.io scraper for my blog
View scraper.js
var nodeio = require('node.io'),
options = {timeout: 10};
exports.job = new nodeio.Job(options, {
input: false,
run: function (keyword) {
this.getHtml('http://robert-kowalski.de', function (err, $) {
var titles = [];
$('h1.entry-title')
.each(function(element) {
@robertkowalski
robertkowalski / gist:4206422
Created Dec 4, 2012
adding meta tags to head with javascript
View gist:4206422
var meta=document.createElement('meta');
meta.name='viewport';
meta.setAttribute('content', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0');
document.getElementsByTagName('head')[0].appendChild(meta);
@robertkowalski
robertkowalski / npm-registry-licenses.txt
Created Nov 23, 2013
The licenses in the npm-registry from their package.json, from the latest version of each module 23.11.2013
View npm-registry-licenses.txt
The licenses in the npm-registry from their package.json, from the latest version of each module
23.11.2013
[ { key: 'undefined', value: 27785 },
{ key: 'MIT', value: 20811 },
{ key: 'BSD', value: 5240 },
{ key: 'BSD-2-Clause', value: 621 },
{ key: 'Apache 2.0', value: 263 },
{ key: 'GPL', value: 233 },
@robertkowalski
robertkowalski / Vagrantfile
Created May 23, 2014
My CouchDB Vagrant File
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
BOX_NAME = ENV['BOX_NAME'] || "ubuntu"
BOX_URI = ENV['BOX_URI'] || "http://files.vagrantup.com/precise64.box"
AWS_REGION = ENV['AWS_REGION'] || "us-east-1"
AWS_AMI = ENV['AWS_AMI'] || "ami-d0f89fb9"
Vagrant::Config.run do |config|
# Setup virtual machine box. This VM configuration code is always executed.
View pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIugg/Fexmf1awaEar9QdYWJdiNEajjnvOoGYGlYRmbGrJ3WJK+7q6Ebzff7ZfhH8uFvyRfCwdE4oJW1M1TQPnxgkzCfs8zAqjwPAQJLEUPBLLh9RFMEHHLp02DLvhmnWYtIx0DOl03/rq+XS90WYacvMlAXNMaQQukyNc4jvB2l4Su6qa89sBq9vz5glrD8v1l93/nBucVvNvEmfbOGuSsi47hGDkezsISsl37LBmNKLR8+gQQMVzOZQcfLxycACH6q98K2oli76PIMh305z/5BLOrlrcUX7JyoPtP304vRjusU0orITQQqeeuO29gg81+IfwLf+V6Afr1A7RbyDH robert@tequila-work
View couchapp-examples.md
View bug.js
var request = require('request')
var testDbName = 'foobar123' + Math.floor(Math.random() * 10000)
var cookieJar = request.jar()
request({
jar: cookieJar,
method: 'POST',
form: {
View mango-talk-04-2015.md

Code

AnimalDB

Get it from:

http://examples.cloudant.com/animaldb
You can’t perform that action at this time.