Skip to content

Instantly share code, notes, and snippets.

View samccone's full-sized avatar
🐐

Sam Saccone samccone

🐐
  • Google
  • ∆∆∆<script>alert(prompt('why'))</script>
  • X @samccone
View GitHub Profile
Receiver: Unknown error
HTTP/1.1 500 Internal Service Error
Date: Thu, 30 Jan 2014 02:53:45 GMT
Server: Apache/2.4.6 (Ubuntu)
X-Powered-By: PHP/5.5.3-1ubuntu2.1
Content-Length: 273
Connection: close
Content-Type: text/xml; charset=utf-8
http://blog.mojotech.com/post/75050020805/mojotech-now-accepts-bitcoin,http://blog.mojotech.com/mojotech-now-accepts-bitcoin
http://blog.mojotech.com/post/74861855031/optimizing-slow-collectionviews,http://blog.mojotech.com/optimizing-slow-collectionviews
http://blog.mojotech.com/post/74857191311/2013-a-huge-year,http://blog.mojotech.com/2013-a-huge-year
http://blog.mojotech.com/post/74279557847/two-new-mojos,http://blog.mojotech.com/two-new-mojos
http://blog.mojotech.com/post/74086378978/why-you-should-stop-looking-for-the-best-apps,http://blog.mojotech.com/why-you-should-stop-looking-for-the-best-apps
http://blog.mojotech.com/post/73638855021/building-better-mojo-five-reasons-we-partner-with-a,http://blog.mojotech.com/building-better-mojo-five-reasons-we-partner-with-a
http://blog.mojotech.com/post/73621920601/weve-been-nominated-for-the-developer-of-the-year,http://blog.mojotech.com/weve-been-nominated-for-the-developer-of-the-year
http://blog.mojotech.com/post/72770514471/the-real-reason-37signals-is-succ
@samccone
samccone / gist:9715240
Created March 22, 2014 22:12
closeable
App.module "Behaviors", (Behaviors, App, Backbone, Marionette, $, _) ->
Behaviors.Closeable = Marionette.Behavior.extend
events: ->
"click .close": @view.close
onShow: ->
$(window).on 'keydown', _.bind(@checkClose, @view)
onClose: ->
$(window).off 'keydown', _.bind(@checkClose, @view)
App.module "Behaviors", (Behaviors, App, Backbone, Marionette) ->
class Behaviors.KeyEvents extends Marionette.Behavior
onShow: ->
$(window).on 'keydown', @checkKey
onClose: ->
$(window).off 'keydown', @checkKey
shouldIgnore: ->
a = document.activeElement.tagName
@samccone
samccone / cmd
Created July 16, 2014 17:30
todo mvc sample
./node_modules/.bin/dill --coffee --require steps --format=pretty
@samccone
samccone / newtest.js
Last active August 29, 2015 14:05 — forked from joshtombs/newtest.js
module.exports = function(){
this.Given(/^I visit TODOMVC$/,function(){
return this.driver.get('http://todomvc.com/architecture-examples/backbone/')
});
this.When(/^I enter "([^"]*)"$/, function(value){
return new this.Widget({
root: "#new-todo"
}).sendKeys(value,Driver.Key.ENTER);
});
p
| this is some text content
a.ui-blah(href='#') this is a link
@samccone
samccone / gist:6dd71bd310ab8e6158ba
Created September 23, 2014 13:42
Frontend Designer toolkit

Frontend Designer Toolkit

Markup

  • jade

Styles

  • stylus
@samccone
samccone / gist:0bdb7b2d226715f29587
Created September 24, 2014 19:05
Current roots v3 errors

Current errors

Potentially unhandled rejection [16] AssertionError: value: expected 'C:\\cygwin64\\home\\IEguy\\repos\\roots\\test\\fixtures\\compile\\path_helper\\public\\path_helper.html' to exist
  at [object Function].<anonymous> (C:\cygwin64\home\IEguy\repos\roots\node_modules\chai-fs\lib\assertions\file.js:21:53)
  at [object Function].ctx.(anonymous function) [as file] (C:\cygwin64\home\IEguy\repos\roots\node_modules\chai\lib\chai\utils\addMethod.js:40:25)
  at Compile.<anonymous> (C:\cygwin64\home\IEguy\repos\roots\test\compile.coffee:143:21)

todo for marionette support

  • Copy for page
  • Design for page
  • Implement page
  • Press release marketing push?