Skip to content

Instantly share code, notes, and snippets.

View pilif's full-sized avatar

Philip Hofstetter pilif

View GitHub Profile
var sys = require('sys');
var client = require("./redis-node-client/lib/redis-client").createClient();
client.set('test:foo', 'bar', function(err, data){
sys.p(err);
sys.p(data);
});
setTimeout(function(){
client.get('test:foo', function(err, data){
sys.p(err);
sys.p(""+data);
<?php
define('IT', 100000);
error_reporting(E_ALL);
$g = array('a' => 'b');
$a = '';
function _(&$in, $k=null){
if (!isset($in)) return null;
<?php
define('IT', 100000);
error_reporting(E_ALL);
$g = array('a' => 'b');
$a = '';
function _(&$in, $k=null){
if (!isset($in)) return null;
<?php
define('IT', 100000);
error_reporting(E_ALL);
$g = array('a' => 'b');
$a = '';
function _(&$in, $k=null){
if (!isset($in)) return null;
<?php
define('IT', 100000);
error_reporting(E_ALL);
$g = array('a' => 'b');
$a = '';
function _(&$in, $k=null){
if (!isset($in)) return null;
redis = require 'redis'
spawn = require('child_process').spawn
waiter = (i)->
console.log "waiter #{i} connecting"
c = redis.createClient 6379, 'localhost'
c.on "connect", ->
c.select 2, (err, res) ->
popper(c, i)
<?php
stream_filter_register("utf8encode", "utf8encode_filter");
class utf8encode_filter extends php_user_filter {
function filter($in, $out, &$consumed, $closing) {
while($bucket = stream_bucket_make_writeable($in)) {
utf8fix($bucket->data, true);
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);
<?php
stream_filter_register("utf8encode", "utf8encode_filter");
class utf8encode_filter extends php_user_filter {
function filter($in, $out, &$consumed, $closing) {
while($bucket = stream_bucket_make_writeable($in)) {
$bucket->data = utf8_encode($bucket->data);
$consumed += $bucket->datalen;
stream_bucket_append($out, $bucket);

Keybase proof

I hereby claim:

  • I am pilif on github.
  • I am pilif (https://keybase.io/pilif) on keybase.
  • I have a public key whose fingerprint is 082B 4B70 CDCF AD82 C6B7 03C5 7682 6433 6C53 E05A

To claim this, I am signing this object:

class Test {
public static void main(String [ ] args){
System.out.println("💩".length());
}
}