Skip to content

Instantly share code, notes, and snippets.

View jaredwilli's full-sized avatar
🏄‍♂️

Jared Williams jaredwilli

🏄‍♂️
View GitHub Profile
@jaredwilli
jaredwilli / settings.json
Last active November 7, 2017 17:24
Old Mac VSCode User Settings
{
"debug.allowBreakpointsEverywhere": true,
"debug.inlineValues": true,
"files.autoSave": "onFocusChange",
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"editor.cursorStyle": "line-thin",
"editor.wordWrap": "on",
@jaredwilli
jaredwilli / cloudSettings
Last active December 22, 2017 17:14
New Mac Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-12-22T17:14:41.087Z","extensionVersion":"v2.8.7"}
@jaredwilli
jaredwilli / bootstrapNewMac
Created November 7, 2017 03:13 — forked from natelandau/bootstrapNewMac
A bootstrap script to install my dotfiles and configure a new computer
#!/usr/bin/env bash
# This bootstraps installing ssh-keys to github
# set colors
if tput setaf 1 &> /dev/null; then
tput sgr0
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
ORANGE="$(tput setaf 172)"
else
@jaredwilli
jaredwilli / .bash_profile
Created November 7, 2017 00:51 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@jaredwilli
jaredwilli / app.js
Created October 17, 2017 15:38
Coding Challenge
/**
* Localytics Coding Challenge
*
* Written by Jared Williams
* http://github.com/jaredwilli
*
* Life would be so much easier if we only had the source code...
*/
/**
postgres: postgres -D /usr/local/var/postgres/
api: pserve Config/cl/conf/localhost.ini#api --reload
internalapi: pserve Config/cl/conf/localhost.ini#internalapi --reload
webhook: pserve Config/cl/conf/localhost.ini#webhook --reload
rabbit: rabbitmq-server
redis: redis-server /usr/local/etc/redis.conf
flower: flower --broker=amqp://guest:guest@localhost:5672//
celery1: celery worker -A cl.vendor.celery_setup.app -c 4 -n 'celery worker' -l info
celery2: celery worker -A cl.vendor.scheduler.scheduler_app -c 1 -l info -n scheduler -Q scheduled_jobs
@jaredwilli
jaredwilli / gist:c60e5f61a53af76b52ca
Last active February 11, 2020 17:45
Angular 2.0 questions answered by the Angular team
What is the release date for 2.0?
No exact release date yet. They don't want what happened with 1.2.They want to
make sure they get it done right for 2.0 so they are not setting a date yet.
What is the plan for having a migration path for 2.0? How much rewriting of 1.x
apps will need to be done to migrate to 2.0?
Mishko said that there will definitely be a migration plan for 2.0. They dont know

What are we trying to observe? Raw object data.

// Objects
var obj = { id: 2 };
obj.id = 3; // obj == { id: 3 }
 
// Arrays
var arr = ['foo', 'bar'];
arr.splice(1, 1, 'baz'); // arr == ['foo', 'baz'];
@jaredwilli
jaredwilli / gist:7949078
Created December 13, 2013 18:41
DOM Ready module pattern
/**
* Brightcove Consulting
*/
var bcc = {
common : {
init: function(){
$('body').append('<h2>HIIIIII<h2>');
}