Skip to content

Instantly share code, notes, and snippets.

View davidcoallier's full-sized avatar

David Coallier davidcoallier

View GitHub Profile

Meta

     API Documentation, generated 2010-06-04T21:20:29+01:00
     Actions      : 4
     Errors       : 2
     Output Types : 5

Actions

#!/usr/bin/env perl
# Run this script with:
# post-commit.pl /path/to/svn/repo revision_number
#
# You need to run it with environment variable LANG=en_US.UTF-8 for non-english locales
# Otherwise it will display invalid chars on Assembla stream and emails.
###################################################
# Find these below values on external svn tool tab
class Actionname(tornado.web.RequestHandler):
def get(self):
self.write({"elazar":"get"})
def post(self):
self.write({"elazar":"post"})
def put(self):
self.write({"elazar":"put"})
<?php
class Vendor_View_Helper_AutoEscape
{
protected $_unescapedVars = null;
protected $_view;
public function setView(Zend_View_Interface $view)
{
$this->_view = $view;
$ ssh ubuntu@hostname-of-the-instance -i your-amazon-cert.pem
Linux domU-12-21-38-34-69-D2 2.6.32-305-ec2 #9-Ubuntu SMP Thu Apr 15 04:14:01 UTC 2010 i686 GNU/Linux
Ubuntu 10.04 LTS
Welcome to the FRAPI API Server!
* Documentation: http://wiki.github.com/frapi/frapi/
* User General Mailing List: http://groups.google.com/group/frapi-general
* Or you can always reach us on IRC irc://frapi@irc.freenode.org
server {
listen 80;
server_name admin.api.mydomain.com;
...
server {
listen 80;
server_name api.mydomain.com;
<?php
class Default_Model_FooBar extends Zend_Db_Table_Abstract
{
/**
* Local table name
*
* @var string $_name The name of the table associated with
* this model class.
*/
var sys = require('sys');
var couch = require('couchdb');
var graph = require('graph/Graph');
var vertex = require('graph/Vertex');
var edge = require('graph/Edge');
var matrix = require('graph/matrices/adjacency');
var client = couch.createClient(5984, 'localhost');
var viewUrl = '/graphs/_design/graph/_view/vertices';
@davidcoallier
davidcoallier / node-extend.js
Created November 9, 2010 19:56
So you miss your good old, jquery.extend?
Object.defineProperty(Object.prototype, "extend", {
enumerable: false,
value: function(from) {
var props = Object.getOwnPropertyNames(from);
var dest = this;
props.forEach(function(name) {
if (name in dest) {
sys.puts(sys.inspect(this));