Skip to content

Instantly share code, notes, and snippets.

View chanced's full-sized avatar

Chance chanced

  • Columbia, SC, USA
View GitHub Profile
/**
* Hypertext Transfer Protocol (HTTP) response status codes.
*
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
*/
export enum HttpStatusCode {
/**
* The server has received the request headers and the client should proceed to send the request body
* (in the case of a request for which a body needs to be sent; for example, a POST request).
@staltz
staltz / introrx.md
Last active April 29, 2024 09:25
The introduction to Reactive Programming you've been missing
@seanzx85
seanzx85 / navbar.js
Last active August 29, 2015 13:57
Gumby Framework mobile navigation in AngularJS
//Wrapped for requireJS
define([
'angular'
], function (angular) {
angular.module('Gumby', [])
/**
* Controller is used to map the factory functions to the scope
*/
.controller('GumbyNavbarCtrl', ['$scope', 'gumbyNavbarState', function ($scope, NavbarState) {
$scope.isActive = NavbarState.isActive;
@aantix
aantix / gist:1999816
Created March 8, 2012 09:08
Remote Pair Programming sucks. Here's how to solve it.

REAL WORLD SCENARIO (blinking lights)

Mr. Tom Dev wants to remote pair program with Mr. Todd Programmer. Tom is in New York, Todd is in San Francisco. They’re working on yet another blog written in Ruby. Tom fires up Rubymine, Todd fires up TextMate.

Todd’s editor quickly alerts him that he is connected with Tom and that their projects are out of sync. The plugin gives them each the option of using Tom’s file versions, Todd’s files, or performing a git pull request. They both do a git pull and are back in sync.

Todd quickly opens the User model in Rubymine with cmd-shift-N and Todd quickly sees that same file opened in Textmate. Todd then highlights a method that has been failing a test and Tom sees that highlight. Todd makes the change to the file, clicks cmd-s, and that file change is synced over to Tom.

Tom thought there was a secondary change needed in the Profile model, so he hits cmd-T, opens the Profile model and Todd sees that file opened in Rubymine. Todd tells Tom that he’s smoking catn

:model
form(user)
p
field(name)
p
field(email)
p
field(summary, as: 'textarea')
buttons