Skip to content

Instantly share code, notes, and snippets.

@ingshtrom
ingshtrom / TestComplete.jshintrc
Created August 19, 2013 11:44
This is my JSHint configuration file for use with TestComplete code. I am using Sublime Text build #3047 with the JSHint Gutter plugin.
{
// Details: https://github.com/victorporof/Sublime-JSHint#using-your-own-jshintrc-options
// Example: https://github.com/jshint/jshint/blob/master/examples/.jshintrc
// Documentation: http://www.jshint.com/docs/
"browser": true,
"esnext": true,
"globals": {
"Log": true
},
"globalstrict": true,
{
"auto_complete_selector": "source",
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/base16-default.dark.tmTheme",
"detect_indentation": true,
"detect_slow_plugins": false,
"drag_text": false,
"draw_minimap_border": false,
"font_face": "monofur",
"font_options":
#!/bin/bash -ex
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
# install ThinkUp on DigitalOcean VPS -- Ubuntu:
#
# @spara 12/23/10
# @waxpancake 1/3/11
# @ingshtrom 4/10/14
# install required packages
# run https://gist.github.com/ingshtrom/057f060db3045f1f96e0
# this puts it all in ~
# get the install script
cd ~
git clone https://gist.github.com/057f060db3045f1f96e0.git ThinkUpInstall
cp ThinkUpInstall/thinkup_install.sh ~/thinkup_install.sh
rm ThinkUpInstall --force --recursive
# Install MySQL Server package on Ubuntu
# to be run from a BASH session
sudo apt-get update
sudo apt-get install -y mysql-server
# enter in the password you want for the root user
# run manually to cache sudo credentials
sudo su
. thinkup_install.sh
@ingshtrom
ingshtrom / phat-logger.js
Last active August 29, 2015 14:05
The default logger config I use for my projects (minus loggly and logentries)
var winston = require('winston'),
config = require('./config');
var consoleConfig, fileConfig;
// MODULE API
module.exports.logger = configure();
// MODULE IMPLEMENTATIONS
function configure () {
// add our custom transports for all loggers
@ingshtrom
ingshtrom / project-structure-guidelines.md
Last active August 29, 2015 14:05
Project structure guidelines that I think I want to follow for my projects.

Project Guidelines

Starting with mystic-noggin, I want to start keeping track of my project guidelines so that I can keep my projects consistent!...maybe.

Node.js

  • main 3 directories
    • pub: contains all generated files (usually from Grunt)
    • src: all source code. Within there are 'client' and 'server sections
    • test: all the tests for the src/ code
// import mechanic and tuneup.js here
test("foobar", function(target, app) {
$.delay(3);
var username = $("#login-username");
username.log();
if (username instanceof UIAElement) {
$.message("username is a UIAElement.");
} else {
$.message("username is NOT an UIAElement.");
@ingshtrom
ingshtrom / bungienet.json
Last active August 29, 2015 14:11
changing the Bungie API file into a json document. Gathered from http://pastebin.com/GTrVtScf
{
"swagger": "2.0",
"info": {
"version": "0.0.1",
"title": "Bungie Platform API - Destiny"
},
"host": "www.bungie.net",
"basePath": "/platform/Destiny",
"schemes": [
"http"