Skip to content

Instantly share code, notes, and snippets.

View example.js
var React = require("react");
module.exports = function (locals) {
var tags = [];
var locals_for_with = locals || {};
(function(checked, label, onChange) {
tags.push(React.createElement.apply(React, [ "div", {
className: "Checkbox flex middle"
} ].concat(function() {
var tags = [];
tags.push(React.createElement.apply(React, [ "button", {
View gist:c9aa45d693ee708e6c55
var React = require("react");
module.exports = function (locals) {
var tags = [];
var locals_for_with = locals || {};
(function(checked, label, onChange) {
tags.push(React.createElement.apply(React, [ "div", {
className: "Checkbox flex middle"
} ].concat(function() {
var tags = [];
tags.push(React.createElement.apply(React, [ "button", {
View gist:0dd8901b9042152db281
<!doctype html> <html xmlns:fb="https://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="//tapjoycdn-a.akamaihd.net/site/assets/frontend_app/images/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"> <meta charset="utf-8"> <!-- title is bootstrapped --> <title> Tapjoy </title> <meta data-locale="//tapjoycdn-a.akamaihd.net/site/assets/frontend_app/locales/en.d7d8a205.js" name="locale-en"> <meta data-locale="//tapjoycdn-a.akamaihd.net/site/assets/frontend_app/locales/de.d4da7cff.js" name="locale-de"> <meta data-locale="//tapjoycdn-a.akamaihd.net/site/assets/frontend_app/locales/zh.a0284ee1.js" name="locale-zh"> <meta data-locale="//tapjoycdn-a.akamaihd.net/site/assets/frontend_app/locales/es.8335314e.js" name="locale-es"> <meta data-locale="//tapjoycdn-a.akamaihd.net/site/assets/frontend_app/locales/fr.27b0f98a.js" name="locale-fr"> <meta data-locale="//tapjoycdn-a.akamaihd.net/site/assets/frontend_app/locales/it.492637a0.js" name="locale-it"> <meta data-locale
View gist:545ecad28fc2e601b2f6
'use strict'
findWinner = (chairs) ->
return null unless chairs.constructor == Array
skip = 0
indexToRemove = 0
removeChair = ->
chairs.splice indexToRemove, 1
You can’t perform that action at this time.