This file contains hidden or 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
NYTD = {}; | |
NYTD.EventTracker = (function () { | |
'use strict'; | |
var etHost; | |
var lastEventTime = 0; | |
var nextCallbackNum = 0; | |
var wtMetaExcludes = { | |
'wt.z_nyts': 1, | |
'wt.z_nytd': 1, | |
'wt.z_ref': 1, |
This file contains hidden or 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 closeApp = function () { | |
var gui = require('nw.gui'); | |
var win = gui.Window.get(); | |
win.close(true); | |
} |
This file contains hidden or 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
<!-- container element, a ul->li element structure will be injected into this by the nyt5 framework. Note the data-shares param that holds which share tools to bring in --> | |
<span aria-label="tools" role="group" class="share-container" data-shares="google|,facebook|,twitter|,linkedin|"></span> | |
<script> | |
// require the foundation | |
require(['foundation/main'], function () { | |
// require share-tools-container (should be in a nested require statement, not in same require as foundation) | |
require([ | |
'jquery/nyt', |
This file contains hidden or 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
collection = user_statistics | |
status [] | |
user_statistics.statstics.comments.[dimension].[CommentStatus].[Field] | |
This file contains hidden or 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
import config from '../config' | |
let components = {} | |
//For each component in the config fiel into an object | |
for (var i = config.length - 1; i >= 0; i--) { | |
components[config[i].name] = require(config[i].path).default | |
} | |
export default components |
This file contains hidden or 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
// This is a proposed format for representing relationsips in items when | |
// they are rendered into views. This optimizes both for transport and | |
// lookup efficiency on the front end. | |
// compacting rels into arrays of keys in hashes with the name of the rel as the key will: | |
// 1) allow lookups on the fe without needing to iterate | |
// 2) compact the data into the tightest possible (with json at least) format for transport | |
{ | |
_id: "23423423", |
This file contains hidden or 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
echo "Launching the Coral Platform" | |
echo "Repo: https://github.com/coralproject/shelf" | |
echo "" | |
echo "Requirements:" | |
echo "GOPATH must be set" | |
echo "GOBIN must be set" | |
echo "mongod must be installed" | |
echo "" | |
if [ ! -d "$GOPATH/src/github.com/coralproject/shelf" ]; then |
This file contains hidden or 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
lsof -i tcp:16180 | awk 'NR>1 {print $2}' | xargs kill | |
lsof -i tcp:16181 | awk 'NR>1 {print $2}' | xargs kill | |
lsof -i tcp:16182 | awk 'NR>1 {print $2}' | xargs kill |
This file contains hidden or 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
52.90.212.172 | |
ssh [email protected] -i ~/dev/coral/env/coral-admin.pem | |
curl ec2-52-90-212-172.compute-1.amazonaws.com -i ~/dev/coral/env/coral-admin.pem | |
http://54.224.33.187:3142 | |
sudo apt-get update | |
sudo apt-get install git |
This file contains hidden or 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
{ | |
"responses": 15, | |
"aggregations": { | |
"23366ebe-ed47-457c-b3fd-71ebe9bcc01d": { | |
"question": { | |
"id": "23366ebe-ed47-457c-b3fd-71ebe9bcc01d", | |
"type": "field", | |
"identity": false, | |
"component": "MultipleChoice", |
OlderNewer