Skip to content

Instantly share code, notes, and snippets.

View bigardone's full-sized avatar
🏠
Working from home

Ricardo García Vega bigardone

🏠
Working from home
View GitHub Profile
@bigardone
bigardone / 0_README.md
Created June 7, 2019 05:33 — forked from roine/0_README.md
Bare minimum for Elm 0.19

From 0.19 Elm introduced 4 ways to boot an app:

  1. sandbox (no outside interaction)
  2. element (simple outside interaction - side effect, flags, subscriptions)
  3. document (same as above but with title tag control)
  4. application (whole SPA features)
@bigardone
bigardone / paginator_section.js
Created June 17, 2015 15:25
Paginator Section
this.PaginatorSection = React.createClass(
{
displayName: "PaginatorSection",
_handleOnClick: function(e) {
return this.props.onPaginate(e)
},
render: function() {
var e;
return this.props.totalPages > 1 ? React.DOM.ul({className: "pagination"}, function() {
var t, n, r;
/*!
* jQuery Tiny Pub/Sub - v0.6 - 1/10/2011
* http://benalman.com/ see https://gist.github.com/661855
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*
* (removed pre 1.4.3 support, added $.pubsubdebug())
*/
@bigardone
bigardone / plugin.coffee
Created August 8, 2013 06:58
CoffeeScript jQuery plugin template
# Note that when compiling with coffeescript, the plugin is wrapped in another
# anonymous function. We do not need to pass in undefined as well, since
# coffeescript uses (void 0) instead.
do ($ = jQuery, window, document) ->
# window and document are passed through as local variable rather than global
# as this (slightly) quickens the resolution process and can be more efficiently
# minified (especially when both are regularly referenced in your plugin).
# Create the defaults once