Skip to content

Instantly share code, notes, and snippets.

View guilhermeaiolfi's full-sized avatar

Guilherme Aiolfi guilhermeaiolfi

View GitHub Profile
<html>
<head>
<script src="javascripts/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="javascripts/ember.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
App = Ember.Application.extend();
App.Node = Ember.Object.extend({
name: null,
@voidfiles
voidfiles / actionQueue.js
Created November 27, 2011 19:42
actionQueue
(function(A) {
var registered_ids = {},
id_to_module_map = {},
interim_actions = {},
cleanup_actions = {},
clicked_ids = {},
queueing = {};
function register_id(id, callbacks, required_module) {
id = id.replace('*', '.*');
@wittemann
wittemann / gist:619077
Created October 10, 2010 08:08
qx.data.controller.Table [qx]
qx.Class.define("qx.data.controller.Table", {
extend : qx.core.Object,
construct : function(model, target, columns, columnsPaths) {
this.base(arguments);
if (model) {
this.setModel(model);
}
@hubgit
hubgit / ElasticSearch.php
Created February 16, 2010 17:20
ElasticSearch class for PHP
<?php
// http://www.elasticsearch.com/docs/elasticsearch/rest_api/
class ElasticSearch {
public $index;
function __construct($server = 'http://localhost:9200'){
$this->server = $server;
}