ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Add PATH to ~/.bash_profile
and ~/.zshrc
export PATH=/usr/local/bin:$PATH
#add 'node_modules' to .gitignore file | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin <branch-name> |
Picking the right architecture = Picking the right battles + Managing trade-offs
import websocket | |
import thread | |
import time | |
import sys | |
port = sys.argv[1] | |
def on_message(ws, message): |
// DarkSky API | |
// CORS requests are NOT allowed by the DarkSky server | |
// Requests from other Servers are allowed | |
// So, we would make a pass thru file on a server. | |
// Browser sends the fetch( ) AJAX request to OUR server | |
// OUR server sends the AJAX request to DarkSky server | |
// DarkSky responds to OUR Server | |
// OUR Server sends the DarkSky reply back to Browser | |
// Browser AJAX call => Our Server => DarkSky => Our Server => Browser AJAX call |
import React, { Component } from 'react'; | |
import { | |
Collapse, | |
Navbar, | |
NavbarToggler, | |
NavbarBrand, | |
Nav, | |
NavItem, | |
NavLink, | |
Container, |