Skip to content

Instantly share code, notes, and snippets.

View johannhof's full-sized avatar

Johann Hofmann johannhof

View GitHub Profile
@johannhof
johannhof / ba.rb
Created February 22, 2016 17:34
my burgerbot
#!/usr/bin/env ruby
# modified from https://gist.github.com/pbock/3ab260f3862c350e6b5f #
require 'watir-webdriver'
class BurgerBot
def initialize
@attempt_count = 0
@johannhof
johannhof / example.js
Created October 17, 2015 11:44
Bacon Jest mocking troubles
var Bacon = require('baconjs');
var anotherStream = require('./example2');
module.exports = Bacon
.once("wow")
// if `anotherStream` is from another JS context,
// e.g. mocked from jest, this will fail (it shouldn't)
.merge(anotherStream);
@johannhof
johannhof / gist:7356806
Created November 7, 2013 15:48
Vim disable arrow keys
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>