A Pen by Chris Coyier on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// shorthand for $(document).ready(); | |
$(function(){ | |
//Your code... | |
var f = $('form'); | |
$(f).submit( function(event){ | |
event.preventDefault(); | |
var children = event.currentTarget.childNodes; | |
var shitwecareabout = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// EVENT LINKING UTILITY CLASS FOR IMPLEMENTING OBSERVER PATTERN super coooool... thanks to http://alexatnet.com/articles/model-view-controller-mvc-javascript | |
function Event(sender) { | |
this._sender = sender; | |
this._listeners = []; | |
} | |
Event.prototype = { | |
attach : function (listener) { | |
this._listeners.push(listener); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'active_record' | |
require 'minitest/autorun' | |
require 'minitest/spec' | |
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:" | |
ActiveRecord::Migration.create_table :users do |t| | |
t.string :name |
Forked from Chris Coyier's Pen Traceur on CodePen.
A Pen by Avi Fox-Rosen on CodePen.
I hereby claim:
- I am avifoxi on github.
- I am aviatchegg (https://keybase.io/aviatchegg) on keybase.
- I have a public key whose fingerprint is 6D3F 7D6C AE04 6ABE 052A 6711 5AA9 2140 4BAC 9F53
To claim this, I am signing this object: