Skip to content

Instantly share code, notes, and snippets.

"use strict";
import React from 'react';
React.render(<div>Hello</div>, document.body)
<?php
$sensors = (new Importer)->import('');
$writer = new TransactionalWriter('transaction.txt');
$exporter = new Exporter;
foreach ($sensors as $sensor) {
$writer->write(strtotime('-30 years'), function ($handle, $old) use ($sensor, $exporter) {
$filter = new SensorDatetimeFiltering(new DateTime(date('c', (integer) $old)));
@henrikbjorn
henrikbjorn / install.sh
Last active August 29, 2015 13:58 — forked from anonymous/install.sh
#!/bin/sh
#
# homebrew-cask
# Install homebrew-cask
brew tap phinze/cask
brew install brew-cask
# Install some quicklook-plugins
brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json quicklook-csv

Keybase proof

I hereby claim:

  • I am henrikbjorn on github.
  • I am hb (https://keybase.io/hb) on keybase.
  • I have a public key whose fingerprint is 72F5 D554 157A 2B03 1F79 737C 1F41 BC58 77AA 207C

To claim this, I am signing this object:

<?php
/**
* Simple SocketServer that runs over the udp protocol. The run method takes a callable
* which is called with the data received.
*
* @package Socket
*/
class SocketServer
{
@henrikbjorn
henrikbjorn / CodeCoverage.php
Created November 7, 2012 11:52
CodeCoverage for PHPSpec2
<?php
namespace Vandpibe\PHPSpec\Extension;
use PHPSpec2\ServiceContainer;
use PHP_CodeCoverage;
use PHP_CodeCoverage_Report_HTML;
class CodeCoverage implements \PHPSpec2\Extension\ExtensionInterface
{
require 'formula'
class Zsh < Formula
homepage 'http://www.zsh.org/'
url 'https://github.com/zsh-users/zsh/zipball/zsh-5.0.0'
md5 '70d3322829e5eca007cb83a14c1d4b4e'
depends_on 'gdbm'
depends_on 'pcre'
{
"minimum-stability" : "beta",
"require" : {
"symfony/symfony" : "2.0.*",
"doctrine/orm" : "2.3.0-BETA1 as 2.2.3",
"doctrine/common" : "2.3.0-BETA1 as 2.2.3",
"doctrine/dbal" : "2.3.0-BETA1 as 2.2.3"
}
}
@henrikbjorn
henrikbjorn / gist:2952885
Created June 19, 2012 07:55
What is it that isnt working :S
Interval Since Last Panic Report: 23250 sec
Panics Since Last Report: 1
Anonymous UUID: 3727230E-B9B5-4520-8799-3F278D74FAE8
Tue Jun 19 09:53:53 2012
panic(cpu 2 caller 0xffffff7f8275bcaf): NVRM[0/1:0:0]: Read Error 0x00104008: CFG 0xffffffff 0xffffffff 0xffffffff, BAR0 0xd2000000 0xffffff8115ab6000 0x0a5480a2, D0, P3/4
Backtrace (CPU 2), Frame : Return Address
0xffffff80f2debac0 : 0xffffff8001e1d636
0xffffff80f2debb30 : 0xffffff7f8275bcaf
0xffffff80f2debbc0 : 0xffffff7f828555e3