Skip to content

Instantly share code, notes, and snippets.

View bimbiero's full-sized avatar

Brad Imbierowicz bimbiero

  • Fernandina Beach, FL
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bimbiero on github.
  • I am bimbiero (https://keybase.io/bimbiero) on keybase.
  • I have a public key ASCiQG2ikVYK6V6TjV6_iMibISCvJ9eJObH38ulb4jwTkQo

To claim this, I am signing this object:

@bimbiero
bimbiero / backbone_model_mixin.js
Last active August 29, 2015 14:03
BackboneMixin for updating react on model events
define(function() {
return {
componentDidMount: function () {
// Whenever there may be a change in the Backbone data, trigger a
// reconcile.
this.getBackboneModels().forEach(function (model) {
// explicitly bind `null` to `forceUpdate`, as it demands a callback and
// React validates that it's a function. `model` events passes
// additional arguments that are not functions
@bimbiero
bimbiero / nginx.conf
Created July 12, 2012 19:40
Standard configuration file we use with Nginx/Unicorn.
# This is example contains the bare mininum to get nginx going with
# Unicorn or Rainbows! servers. Generally these configuration settings
# are applicable to other HTTP application servers (and not just Ruby
# ones), so if you have one working well for proxying another app
# server, feel free to continue using it.
#
# The only setting we feel strongly about is the fail_timeout=0
# directive in the "upstream" block. max_fails=0 also has the same
# effect as fail_timeout=0 for current versions of nginx and may be
# used in its place.