Skip to content

Instantly share code, notes, and snippets.

View henvic's full-sized avatar

Henrique Vicente henvic

View GitHub Profile
#!/bin/bash
#
# Cloud Hooks: code-deploy, code-update, db-copy, web-activate
# Essentially any time code or db changes are made.
#
# Purges Varnish cache for all .com domains assigned to the environment in Acquia Cloud.
site="$1"
target_env="$2"
drush_alias=$site'.'$target_env
#!/bin/bash
#
# Cloud Hooks: code-deploy, code-update, db-copy, web-activate
# Essentially any time code or db changes are made.
#
# Purges Varnish cache for all .com domains assigned to the environment in Acquia Cloud.
site="$1"
target_env="$2"
drush_alias=$site'.'$target_env
CancellablePromise.sequence = function(values) {
var children = [];
return new A.CancellablePromise(
function(resolve, reject) {
if (!A.Lang.isArray(values)) {
reject(new TypeError('CancellablePromise.sequence expects an array of values or promises'));
return;
}
@henvic
henvic / CancellablePromise.js
Last active August 29, 2015 14:16 — forked from eduardolundgren/CancellablePromise.js
CancellablePromise.all
/**
* Cancellable promise.
*
* @class CancellablePromise
* @constructor
* @extends {Promise}
* @param {Function} fn A function where to insert the logic that resolves this
* promise. Receives `fulfill` and `reject` functions as parameters. This
* function is called synchronously.
* @param {Function} opt_errorCallback Optional error callback to be fired
@henvic
henvic / pos.js
Created September 21, 2013 01:35 — forked from eduardolundgren/pos.js
_setPosition: function(val) {
var instance = this;
val.x = val.x || 0;
val.y = val.y || 0;
val.z = val.z || 0;
return val;
}
@henvic
henvic / pos.js
Created September 21, 2013 01:34 — forked from eduardolundgren/pos.js
_setPosition: function(val) {
var instance = this;
val.x = val.x || 0;
val.y = val.y || 0;
val.z = val.z || 0;
return val;
}
@henvic
henvic / pos.js
Created September 21, 2013 01:33 — forked from eduardolundgren/pos.js
_setPosition: function(val) {
var instance = this;
val.x = val.x || 0;
val.y = val.y || 0;
val.z = val.z || 0;
return val;
}
@henvic
henvic / pos.js
Created September 21, 2013 01:31 — forked from eduardolundgren/pos.js
_setPosition: function(val) {
var instance = this;
val.x = val.x || 0;
val.y = val.y || 0;
val.z = val.z || 0;
return val;
}
@henvic
henvic / pos.js
Created September 21, 2013 01:26 — forked from eduardolundgren/pos.js
_setPosition: function(val) {
var instance = this;
val.x = val.x || 0;
val.y = val.y || 0;
val.z = val.z || 0;
return val;
}
@henvic
henvic / html5-demos.md
Created September 20, 2013 05:28 — forked from zenorocha/html5-demos.md
The HTML5 Amount of Awesomeness (work in progress)

The HTML5 Amount of Awesomeness

Rainbox Vomit

A collection of freaking awesome HTML5 demos (work in progress).

WebGL