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
#!/bin/sh | |
# | |
# Run Script | |
# wget -qO - "https://git.io/vUGQt" | sudo sh | |
# Edit Script | |
# wget -q --content-disposition "https://git.io/vUGQt" | |
# | |
set -e |
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
name: savi-nats-server | |
version: "1.0.2" | |
summary: "High-Performance server for NATS" | |
description: "High-Performance server for NATS, the cloud native messaging system" | |
confinement: strict | |
apps: | |
nats-server: | |
command: gnatsd-v1.0.2-linux-amd64/gnatsd | |
daemon: simple |
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
import React, { PropTypes } from 'react' | |
import styled from 'styled-components' | |
import t from 'tachyons-js' | |
export const List = ({ | |
className, | |
children, | |
}) => ( | |
<ul className={className}> |
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
import {Parser} from 'jison' | |
// tokens | |
const EOL = 'EOL' // End of line | |
const EOR = 'EOR' // End of record | |
const LEFT = 'x' | |
const TOP = 'y' | |
const WIDTH = 'c' | |
const HEIGHT = 'r' | |
const INVALID = 'INVALID' |
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
/** | |
* Returns a hash of the form values for the form closest to the provided target | |
**/ | |
getFormValues = function _getFormValues(target) { | |
var fields = $(target).closest('form').find(':input'); | |
return _.reduce(fields, function(initial, field) { | |
var name = field.name; | |
if (name === '') return initial; | |
initial[name] = field.value.trim(); |
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
<template name='editableList'> | |
<div class="panel panel-default search-panel"> | |
<div class="panel-heading"> | |
<span style="color:#428BCA;font-size:17px;line-height:19.5px">{{name}}</span> | |
<div class="panel-toolbar pull-right"> | |
<form class="nav-search" style="right:40px;"> | |
<span class="input-icon"> | |
<input type="text" placeholder="Search ..." class="nav-search-input" autocomplete="off" name="search"/> | |
<i class="icon-search nav-search-icon"></i> |
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
// Taken from: | |
// https://github.com/wycats/handlebars.js/pull/385 | |
// http://jsfiddle.net/QV9em/4/ | |
// | |
// {{#each items}} | |
// {{#include section=..}} | |
// {{> sectionItem}} | |
// {{/include}} | |
// {{/each}} | |
Handlebars.registerHelper('include', function(options) { |
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
SessionProperty = function _sessionProperty(key, defaultValue) { | |
if (!_.isString(key)) throw new Meteor.Error('key must be a string'); | |
return function(value) { | |
if (_.isUndefined(value)) { | |
value = Session.get(key); | |
return _.isUndefined(value) ? defaultValue : value; | |
} else { | |
return Session.set(key, value); |
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
{ | |
getItems: function() { | |
var future = new Future() | |
,onComplete = future.resolver() | |
,sequence = 0 | |
,waitingOnReplies = [] | |
,replies = [] | |
,buffer = '' | |
,client | |
; |
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
#!/usr/bin/env node | |
var spawn = require('child_process').spawn | |
,StringDecoder = require('string_decoder').StringDecoder | |
,build,serve | |
; | |
function logData() { | |
var i,len; | |
for (i = 0, len = arguments.length; i < len; i++) { |
NewerOlder