Skip to content

Instantly share code, notes, and snippets.

@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
View iwmn.js
!function(a,c,o){for(b=a.length;b--;)o=a[b].innerText.match(/€(\d*)/),o&&o[1]>c&&a[b].remove()}(document.querySelectorAll('tr'),15)
@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) {
View gist:0fd8468d23a6194ad927
## european confs with cfp
- JS Conf EU
- LXJS (maybe again 2016?)
- MediterráneaJS
- Nordic.js
- ScotlandJS
- ScotlandCSS
- http://nodejsconf.it/
- ReactEurope
You can’t perform that action at this time.