This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var iterable = {}; | |
iterable[Symbol.iterator] = function() { | |
var count = 0; | |
return { | |
next: function() { | |
return ++count <= 3? | |
{value: 'item ' + count, done: false} : | |
{value: undefined, done: true}; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<div> | |
<ul> | |
<li><a></a></li> | |
<li><a id=el></a></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |