- Store the minimum amount of data necessary to describe the entire state of the app
- Use selectors to derive information from the store
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
#!/usr/bin/ruby | |
require 'cgi' | |
trigger = ARGV.shift | |
if trigger == 'songstart' | |
songinfo = {} | |
STDIN.each_line { |line| songinfo.store(*line.chomp.split('=', 2))} |
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
<div class="widget"> | |
<h3>Currently Listening To</h3> | |
<div id="pianobar"> | |
<div id="pianobarSong"></div> | |
<div id="pianobarArtist"></div> | |
<div id="pianobarAlbum"></div> | |
</div> | |
</div> | |
<script> | |
var ref = new Firebase("https://blazing-fire-5020.firebaseio.com/currentSong"); |
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
--- | |
--- | |
<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<channel> | |
<title>{{ site.title }}</title> | |
<description>{{ site.description }}</description> | |
<link>{{ site.url }}</link> | |
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" /> | |
{% for post in site.posts limit:10 %} |
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
/*! d3.chart - v0.2.1 | |
* License: MIT Expat | |
* Date: 2014-06-24 | |
*/ | |
(function(t){"use strict";function e(t){var e,r,n,i;if(!t)return t;for(r=arguments.length,e=1;r>e;e++)if(n=arguments[e])for(i in n)t[i]=n[i];return t}var r=t.d3,n=Object.hasOwnProperty,i=function(t,e){if(!t)throw Error("[d3.chart] "+e)};i(r,"d3.js is required"),i("string"==typeof r.version&&r.version.match(/^3/),"d3.js version 3 is required");var a=/^(enter|update|merge|exit)(:transition)?$/,s=function(t){i(t,"Layers must be initialized with a base."),this._base=t,this._handlers={}};s.prototype.dataBind=function(){i(!1,"Layers must specify a `dataBind` method.")},s.prototype.insert=function(){i(!1,"Layers must specify an `insert` method.")},s.prototype.on=function(t,e,r){return r=r||{},i(a.test(t),"Unrecognized lifecycle event name specified to `Layer#on`: '"+t+"'."),t in this._handlers||(this._handlers[t]=[]),this._handlers[t].push({callback:e,chart:r.chart||null}),this._base},s.prototype.off=function(t,e){var r,n=this._handlers[t];if(i(a. |
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
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
</head> | |
<body> | |
<svg height="200px" width="200px"> | |
<circle cx="100" cy="100" r="50" style="fill: #0091EA"></circle> | |
<circle cx="150" cy="100" r="50" style="fill: #00C853"></circle> | |
</svg> | |
<script> |
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
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
</head> | |
<body> | |
<svg height="500px" width="500px"> | |
<circle cx="100" cy="100" r="50" style="fill: #0091EA"></circle> | |
<circle cx="150" cy="100" r="50" style="fill: #00C853"></circle> | |
</svg> | |
<script> |
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
--- | |
--- | |
<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"> | |
<channel> | |
<title>{{ site.title }}</title> | |
<description>{{ site.description }}</description> | |
<link>{{ site.url }}</link> | |
<language>en</language> | |
<managingEditor>{{ site.managerName }} ({{ site.managerEmail }})</managingEditor> |
I hereby claim:
- I am agarrharr on github.
- I am agarrharr (https://keybase.io/agarrharr) on keybase.
- I have a public key ASAHqzkxr1n0N1OgZ8ft27nVSNVj7OoAYLPMKei5I7vKxAo
To claim this, I am signing this object:
- /*
- console.log('commented')
- /**/
+ //*
+ console.log('uncommented')
+ /**/
OlderNewer