Skip to content

Instantly share code, notes, and snippets.

View tobiastom's full-sized avatar

Tobias Tom tobiastom

View GitHub Profile
<?php
class Foo {
public $headerCallback = 'headers_send';
public function headers() : array {
return call_user_func( $this->headerCallback );
}
}

Keybase proof

I hereby claim:

  • I am tobiastom on github.
  • I am tobiastom (https://keybase.io/tobiastom) on keybase.
  • I have a public key whose fingerprint is F440 D748 782B BD96 5F3B AB4E 4827 815B 70F4 68C5

To claim this, I am signing this object:

@tobiastom
tobiastom / Makefile
Created September 11, 2017 14:13
Consul Exporter Port
# $FreeBSD: head/sysutils/consul/Makefile 449361 2017-09-06 20:00:22Z swills $
PORTNAME= consul_exporter
PORTVERSION= 0.3.0
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= swills@FreeBSD.org
COMMENT= Exporter for Consul metrics
var player = document.querySelector('.html5-video-player');
var video = player.querySelector( 'video' );
player.parentNode.replaceChild( video, player );
video.controls = true;
{
"test": "npm-run-all --parallel test:intern",
"pretest": "php -S 127.0.0.1:9090 Public/index.php & echo $! > server.pid",
"posttest": "kill `cat server.pid` && rm server.pid",
}
<?php
namespace TobiasTom;
use Facebook\HttpClients\FacebookCurl;
class FacebookCurlHttpClient extends \Facebook\HttpClients\FacebookCurlHttpClient {
protected $pemFile;
public function __construct( FacebookCurl $facebookCurl = null, $pemFile = null ) {
"my-package": "git+ssh://git@server:~/package#master"

Keybase proof

I hereby claim:

  • I am tobiastom on github.
  • I am tobiastom (https://keybase.io/tobiastom) on keybase.
  • I have a public key whose fingerprint is F440 D748 782B BD96 5F3B AB4E 4827 815B 70F4 68C5

To claim this, I am signing this object:

Test

  • lala
  • lala
  • lala
  • lala
  • lala
  • lala
  • lala
  • lala
  • lala
@tobiastom
tobiastom / lazy.m
Last active August 29, 2015 14:15 — forked from ttepasse/lazy.swift
@class Foo: NSObject {
@property NSString *lala
@property Bool private
- (void)setPrivate(BOOL)private {
private = private
lala = nil
}
- (NSString *)lala {