Skip to content

Instantly share code, notes, and snippets.

@shepik
shepik / wcl.c
Created November 11, 2011 19:37 — forked from khayrov/wcl.c
fast wc -l
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#define BUF_SIZE 1048576
@shepik
shepik / param_call.php
Created July 1, 2012 19:07 — forked from beezee/param_call.php
PHP named parameter calling
<?php
$x = function($bar, $foo="9") {
echo $foo, $bar, "\n";
};
class MissingArgumentException extends Exception {
}
function call_user_func_named_array($method, $arr){