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
# You can use nvm to install any Node.js (or io.js) version you require. | |
nvm install 4.5.0 | |
nvm use 4.5.0 | |
#install meteor normally | |
curl -o meteor_install_script.sh https://install.meteor.com/ | |
chmod +x meteor_install_script.sh | |
sed -i "s/type sudo >\/dev\/null 2>&1/\ false /g" meteor_install_script.sh | |
./meteor_install_script.sh | |
export PATH=$PATH:~/.meteor/ | |
# install deps |
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
<form id="contact-form" action="//formspree.io/[email protected]" method="post"> | |
<input type="text" name="Name" placeholder="Name" required> | |
<input type="email" name="Email" placeholder="Email" required> | |
<textarea name="Message" cols="30" rows="6" placeholder="Message" required></textarea> | |
<!-- CONFIG --> | |
<input class="is-hidden" type="text" name="_gotcha"> | |
<input type="hidden" name="_subject" value="Subject"> | |
<input type="hidden" name="_cc" value="[email protected]"> | |
<!-- /CONFIG --> | |
<input class="submit" type="submit" value="Send"> |
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
// npm install agentkeepalive batch-stream csv-parse stream-transform | |
var HttpsAgent = require('agentkeepalive').HttpsAgent; | |
var Algolia = require('algolia-search'); | |
var stream = require( 'stream' ); | |
var parse = require('csv-parse'); | |
var fs = require('fs') | |
var transform = require('stream-transform'); | |
var Batch = require( 'batch-stream' ); |
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
#!/bin/sh | |
# assumes a clean install on a fresh linux box. | |
# for use w/ codeship.io | |
set -e | |
set -u | |
# a reference to the cloned repository's path | |
PWD=`pwd` | |
METEOR_APP_PATH="$PWD/MeteorApp" |
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
function slackpost(channel, name, text) { | |
HTTP.post("https://q42.slack.com/services/hooks/incoming-webhook", {"params": | |
{"token": "TODO: fill in token!", | |
"payload": JSON.stringify({ | |
"channel": "#" + channel, | |
"username": name, | |
"text": text, | |
"icon_emoji": (name.indexOf("bot") > -1 ? ":ghost:" : "") | |
}) | |
}} |
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
require 'json' | |
require 'net/http' | |
# JSON parser tag, creating map for use in jekyll markdown | |
# Alex.Heneveld @ Cloudsoft Corp (remove spaces and add the .com) | |
# Released under APL 2.0 | |
# usage: {% jsonball varname from TYPE PARAM %} | |
# | |
# where TYPE is one of {data,var,file,page}, described below |