Skip to content

Instantly share code, notes, and snippets.

View aaronj1335's full-sized avatar
🤠

Aaron Stacy aaronj1335

🤠
View GitHub Profile
@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]
/* global Application, ObjC, $ */
/**
* repozish.js
*
* this is an example of using os x yosemite's "JavaScript for Automation":
*
* https://developer.apple.com/library/prerelease/mac/releasenotes/interapplicationcommunication/rn-javascriptforautomation/index.html
*
* it repositions some windows based on some position settings. you can run
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'))
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');
<!doctype html>
<html>
<head>
</head>
<body>
<div>
<ul>
<li><a></a></li>
<li><a id=el></a></li>
var iterable = {};
iterable[Symbol.iterator] = function() {
var count = 0;
return {
next: function() {
return ++count <= 3?
{value: 'item ' + count, done: false} :
{value: undefined, done: true};
}
}
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)
(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-3-1.bb.travis-ci.com:travis-linux-17
Installing an SSH key
$ git clone --depth=50 git@github.com:WaterfallEngineering/frontend.git WaterfallEngineering/frontend
Cloning into 'WaterfallEngineering/frontend'...
Warning: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts.
remote: Counting objects: 1382, done.
remote: Compressing objects: 100% (1035/1035), done.
#!/usr/bin/env node --harmony
function setup() {
var net = require('net');
var fs = require('fs');
var irc = require('irc-js');
var Notifier = require('node-notifier');
var notifier = new Notifier();