Skip to content

Instantly share code, notes, and snippets.

View evanbleiweiss's full-sized avatar

Evan Bleiweiss evanbleiweiss

View GitHub Profile
@tsmith512
tsmith512 / ADJUSTMENTS.md
Last active May 7, 2016 00:34
Prop 1 in Austin. The diff view of ordinance 20160217-001, which is an amendment to rules governing TNC/Ridehailing applications. Use the "Revisions" tab to see the comparison.

To make the differences between the old ordinance and the new ordinance, I made a few adjustments to them to make the diff line up. Anything in red is being removed, anything in green is being added. Text in black and white is unchanged.

Renamed the DEFINITION section of the new ordinance to DEFINITIONS (plural) to match to show clearly where the real content begins. The new ordinance only has one definition.

Moved the PENALTY section from the end of the new ordenance to after DEFINITIONS to correlate to the original ordinance placement.

Renamed the TNC OPERATING AUTHORITY APPLICATION REQUIRED section of the new ordinance by removing the word "APPLICATION" to match the old ordinance.

In the IDENTITY section, replaced "app" in the new ordinance with "application" to match the old ordinance to demonstrate the similarity.

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

@BinaryMuse
BinaryMuse / gist:3b0a4ba166ac81840cab
Created November 3, 2014 16:20
Async fetches initiated by the store when necessary
// Component
var AnswerDisplay = React.createClass({
mixins: [FluxMixin, StoreWatchMixin("answer")],
getStateFromFlux() {
var flux = this.getFlux(),
answerStore = flux.store("answer");
return {
@thmain
thmain / MyReactComponent.js
Last active October 15, 2022 18:58
Skeleton React Component with descriptions for all of its lifecycle methods
/**
* @jsx React.DOM
*/
var React = require('react'),
MyReactComponent = React.createClass({
// The object returned by this method sets the initial value of this.state
getInitialState: function(){
return {};
@killercup
killercup / donuts.coffee
Created August 26, 2014 13:17
yeah, donuts and coffee! #d3 #charts
make_pie = ($box, data, size) ->
if size?
w = h = size
r = Math.min(w, h) / 2
r2 = r - Math.floor(r/2)
else
w = h = 40
r = Math.min(w, h) / 2
r2 = r - 12
@ricn
ricn / comments.js.jsx
Created July 30, 2014 23:08
comments.js.jsx
/** @jsx React.DOM */
var Comment = React.createClass({
render: function () {
return (
<div className="comment">
<h2 className="commentAuthor">
{this.props.author}
</h2>
{this.props.comment}
</div>
var dom = Bloop.dom;
var Box = Bloop.createClass({
getInitialState: function() {
return { number: 0 };
},
updateNumber: function() {
this.state.number++;
},
@d3noob
d3noob / data.csv
Last active January 13, 2022 22:59
d3.js tool tip with HTML link
date close
1-May-12 58.13
30-Apr-12 53.98
27-Apr-12 67.00
26-Apr-12 89.70
25-Apr-12 99.00
24-Apr-12 130.28
23-Apr-12 166.70
20-Apr-12 234.98
19-Apr-12 345.44
# MODEL
class Case < ActiveRecord::Base
include Eventable
has_many :tasks
concerning :Assignment do
def assign_to(new_owner:, details:)
transaction do