For Homebrew v2.6.x and below:
brew cask install ngrok
For Homebrew v2.7.x and above:
#!/usr/bin/env bash | |
# fresh-chrome | |
# | |
# Use this script on OS X to launch a new instance of Google Chrome | |
# with its own empty cache, cookies, and user configuration. | |
# | |
# The first time you run this script, it will launch a new Google | |
# Chrome instance with a permanent user-data directory, which you can | |
# customize below. Perform any initial setup you want to keep on every |
import javax.inject.Singleton; | |
import javax.ws.rs.container.ContainerRequestContext; | |
import javax.ws.rs.container.ContainerResponseContext; | |
import javax.ws.rs.container.ContainerResponseFilter; | |
import javax.ws.rs.core.MultivaluedMap; | |
import javax.ws.rs.ext.Provider; | |
import java.io.IOException; | |
@Singleton | |
@Provider |
This super lightweight Rails API project will contain the following bits of awesomeness to get you started on your new app.
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |
WebSockets is a modern HTML5 standard which makes communication between client and server a lot more simpler than ever. We are all familiar with the technology of sockets. Sockets have been fundamental to network communication for a long time but usually the communication over the browser has been restricted. The general restrictions
Thanks to this article by Christoph Berg
Directories and files
~/
/** | |
This defines a Global object to serve loading external templates. | |
It handles multiple "Templates" (Or "Views") loading, | |
by operating on an array of JSON objects of type {path: "path to file", tag: "script's tag to attach to dom"} | |
This way- | |
you can load multiple templates, each with it's own tag so they can be referenced seperatly, | |
templates can be written in a much "cleaner" manner - as they are not wrapped by a "script" tag, IDE's will recognize the html. |
Mockito.verify(userDao, Mockito.times(2)).save(Mockito.any(User.class)); |
#!/usr/bin/env bash | |
# fresh-chrome | |
# | |
# Use this script on OS X to launch a new instance of Google Chrome | |
# with its own empty cache, cookies, and user configuration. | |
# | |
# The first time you run this script, it will launch a new Google | |
# Chrome instance with a permanent user-data directory, which you can | |
# customize below. Perform any initial setup you want to keep on every |