Skip to content

Instantly share code, notes, and snippets.

View zhenghao1's full-sized avatar

Mark Huang zhenghao1

View GitHub Profile
'use strict';
(function() {
var mod = angular.module("App.services", []);
//register other services here...
/* pubsub - based on https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js*/
mod.factory('pubsub', function() {
var cache = {};
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
from zope.interface import Interface, Attribute, implements
from zope.component import getGlobalSiteManager, adapts
# here is what our data looks like
class IKey(Interface):
pass
class IEntity(Interface):
@zhenghao1
zhenghao1 / .vimrc
Created August 29, 2012 08:48 — forked from c9s/.vimrc
" Git rebase helper for:
" git rebase --interactive
"
" L - view commit log
" p - pick
" e - edit
" s - squash
" r - reword
" D - delete
"