Skip to content

Instantly share code, notes, and snippets.

View michal's full-sized avatar

Michał Maliszewski michal

View GitHub Profile
var Proxy = {
create: function(module, key) {
return {
// dodajemy obietnice
promise: function(event) {
var def = $.Deferred();
event.data.resolve = def.resolve;
module.triggerEvent(event);
return def.promise();
},
#!/bin/bash
while read oldrev newrev ref
do
branch=`echo $ref | cut -d/ -f3`
if [ "master" == "$branch" ]; then
git --work-tree=/home/huncwot/domains/reserved-ecomerce-master/current checkout -f $branch
package="/home/huncwot/domains/reserved-ecomerce-master/current/packages/${newrev}.zip"
git archive --format=zip HEAD skin templates > $package
{
"httpRoot": "/",
"httpPort": 8080,
"serviceRoot": "/api/",
"serviceHost": "localhost",
"useLocal": true,
"staticPath": ["apps", "library"]
}
@michal
michal / entity.js
Created March 11, 2016 15:18
bacbone like models with pubsub
import _ from 'lodash'
import Events from './events'
export default class Entity {
constructor(defaults) {
this.$events = new Events()
this.$original = {}
this.$changed = []
this._attributes = {}
backgroundOrder:
- 11
- 13
- 44
- 52
- 51
- 50
- 9
- 12
- 14