Skip to content

Instantly share code, notes, and snippets.

public function getServiceConfig()
{
return array(
'factories' => array(
'my-model' => function($sm) {
$model = new \My\Model($sm);
return $model;
}
)
);
@slopjong
slopjong / gist:3093757
Created July 11, 2012 21:38 — forked from pioz/autoclick.c
Autoclick
// Written by Pioz.
// Compile with: gcc -o autoclick autoclick.c -lX11
#include <stdio.h>
#include <string.h>
#include <X11/Xlib.h>
// Simulate mouse click
void
click (Display *display, int button)