Skip to content

Instantly share code, notes, and snippets.

View aaronj1335's full-sized avatar
🤠

Aaron Stacy aaronj1335

🤠
View GitHub Profile
(function(){var none={"facebook":{"status":"ACTIVE"},"mms":{"status":"ACTIVE"},"twitter":{"status":"ACTIVE"},"push":{"status":"ACTIVE"}};var inactive={"fixedBroadcastMessage":{"status":"INACTIVE","position":"APPEND","message":"appended message"},"fixedSubscriptionConfirmMessage":{"status":"INACTIVE","position":"SUBSTITUTE","message":"substituted confirm message"},"mms":{"status":"INACTIVE"},"twitter":{"status":"INACTIVE"},"numberMasking":{"status":"INACTIVE"},"push":{"status":"INACTIVE"},"fixedSubscriptionAlreadySubscribedMessage":{"status":"INACTIVE","position":"SUBSTITUTE","message":"substituted already subscribed message"},"fixedBasicTextMessage":{"status":"INACTIVE","position":"PREPEND","message":"prepended message"},"fixedSubscriptionOptInMessage":{"status":"INACTIVE","position":"SUBSTITUTE","message":"substituted opt-in message"},"facebook":{"status":"INACTIVE"}};var active={"fixedBroadcastMessage":{"status":"ACTIVE","position":"APPEND","message":"appended message"},"fixedSubscriptionConfirmMessage":{"s
Using worker: worker-linux-10-2.bb.travis-ci.com:travis-linux-15
Installing an SSH key
$ git clone --depth=50 git@github.com:WaterfallEngineering/frontend.git WaterfallEngineering/frontend
Cloning into 'WaterfallEngineering/frontend'...
remote: Counting objects: 1393, done.
remote: Compressing objects: 100% (990/990), done.
remote: Total 1393 (delta 445), reused 1006 (delta 286)
var iterable = {};
iterable[Symbol.iterator] = function() {
var count = 0;
return {
next: function() {
return ++count <= 3?
{value: 'item ' + count, done: false} :
{value: undefined, done: true};
}
}
<!doctype html>
<html>
<head>
</head>
<body>
<div>
<ul>
<li><a></a></li>
<li><a id=el></a></li>
diff --git a/widgets/subscriber-search/index.js b/widgets/subscriber-search/index.js
index e045c4c..71d45ef 100644
--- a/widgets/subscriber-search/index.js
+++ b/widgets/subscriber-search/index.js
@@ -114,7 +114,7 @@ define([
var vm = this.options.viewmodel;
var hopefullyMobileNumber = vm.searchQuery();
- visitSubscriberProfile(hopefullyMobileNumber);
+ visitSubscriberProfile(hopefullyMobileNumber, 'replaceState');
var fs = require('fs');
var rework = require('rework');
var reworkNpm = require('rework-npm');
var reworkVisit = require('rework-visit');
module.exports = function(filename) {
var map = {};
rework(fs.readFileSync(filename, 'utf8'))
@aaronj1335
aaronj1335 / core.cljs
Created October 15, 2014 15:07
because @vtho always wants us to over engineer
(ns rdp.core
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[cljs.core :refer [clj->js]]
))
(defonce app-state (atom {:templates ["something {x.y.(\"foo\")} something else"
"a {b.c.(\"d } e\")} f {c.g.(\"h\")}"
":{ }:"]}))
(defn children [parent s]
module.exports = {
listenTo: function(other, event, callback) {
other.on(event, callback, this);
this._eventEmitters = this._eventEmitters || [];
this._eventEmitters.push([other, event]);
},
componentWillUnmount: function() {
(this._eventEmitters || []).forEach(function([other, event]) {
other.off(event, null, this);
var inUseFilterIds = {};
var start = Date.now();
function elapsed(start) {
return (Date.now() - start) / 1e3;
}
print('creating lookup of in-use filter id\'s');
db.broadcast.find().forEach(function(broadcast) {
function Button() {}
Button.prototype = {
color: 'blue',
border: '1px solid black'
};
// use classical inheritance or something like functional mixins to replicate
// the cascading nature of stylessheets
function ButtonActive() {}
ButtonActive.prototype = Object.create(Button.prototype);