A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa
| // ------------ | |
| // counterStore.js | |
| // ------------ | |
| import { | |
| INCREMENT_COUNTER, | |
| DECREMENT_COUNTER | |
| } from '../constants/ActionTypes'; | |
| const initialState = { counter: 0 }; |
| /** @jsx React.DOM */ | |
| var BootstrapModalMixin = function() { | |
| var handlerProps = | |
| ['handleShow', 'handleShown', 'handleHide', 'handleHidden'] | |
| var bsModalEvents = { | |
| handleShow: 'show.bs.modal' | |
| , handleShown: 'shown.bs.modal' | |
| , handleHide: 'hide.bs.modal' |
| #!/usr/bin/env python | |
| """ | |
| http://www.openldap.org/faq/data/cache/347.html | |
| As seen working on Ubuntu 12.04 with OpenLDAP 2.4.28-1.1ubuntu4 | |
| Author: Roberto Aguilar <[email protected]> | |
| """ | |
| import hashlib | |
| import os |
| // REQUIRED: Include "jQuery Query Parser" plugin here or before this point: | |
| // https://github.com/mattsnider/jquery-plugin-query-parser | |
| $(document).ready(function(){ | |
| // BOOTSTRAP 3.0 - Open YouTube Video Dynamicaly in Modal Window | |
| // Modal Window for dynamically opening videos | |
| $('a[href^="http://www.youtube.com"]').on('click', function(e){ | |
| // Store the query string variables and values | |
| // Uses "jQuery Query Parser" plugin, to allow for various URL formats (could have extra parameters) |
A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa
| // Marionette.Gauntlet v0.0.0 | |
| // -------------------------- | |
| // | |
| // Build wizard-style workflows with an event-emitting state machine | |
| // Requires Backbone.Picky (http://github.com/derickbailey/backbone.picky) | |
| // | |
| // Copyright (C) 2012 Muted Solutions, LLC. | |
| // Distributed under MIT license | |
| Marionette.Gauntlet = (function(Backbone, Picky, Marionette, $, _){ |
| require.config({ | |
| baseUrl: '/backbone-tests/', | |
| paths: { | |
| 'jquery' : '/app/libs/jquery', | |
| 'underscore' : '/app/libs/underscore', | |
| 'backbone' : '/app/libs/backbone', | |
| 'mocha' : 'libs/mocha', | |
| 'chai' : 'libs/chai', | |
| 'chai-jquery' : 'libs/chai-jquery', | |
| 'models' : '/app/models' |
| #!/usr/bin/env ruby | |
| =begin | |
| = Geographic Searches With Postgres's Earthdistance and Cube Extensions | |
| This program shows how to easily create a Postgres database that uses the Cube | |
| and Earthdistance extensions to perform fast queries on geographic data. | |
| Briefly, the problem this code solves is "show me all places within 50 | |
| kilometers of New York City." |