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
// Comments for https://www.reddit.com/r/formula1/comments/7aq9hf/massa_announces_his_retirement_from_f1/ | |
const post = { | |
id: 111, | |
title: "Massa announces his retirement from F1" | |
}; | |
const comments = [ | |
{ | |
id: 222, |
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
# COMPONENT | |
RandomChild = React.createClass | |
displayName: "RandomChild" | |
getInitialState: -> { | |
index: Math.ceil(Math.random() * @props.children.length-1) | |
} |
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
_ = require('underscore') | |
InventoryActions = require('action-creators/entities/inventory') | |
actions = _.keys(InventoryActions) | |
mock = | |
mock: -> | |
_.each actions, (action) => | |
@[action] = jasmine.createSpy(action + "Spy").and.returnValue(action) | |
resetMock: -> |
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
var walk = require('walk'); | |
var fs = require('fs'); | |
var classesOrIds = []; | |
var viewsAndTemplates = [] | |
var walkers = []; | |
var maybeUnusedClassesOrIds = []; | |
var compleWalkersCount = 0; | |
var classesToFileMap = {} | |
// Calback Function every time a walker ends |
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
# ========================== | |
# Module: {{displayName}} | |
# Project: Server Density | |
# -------------------------- | |
# Copyright Boxed Ice Ltd | |
# ========================== | |
define (require) -> | |
React = require('react') |
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
# project/Gruntfile.coffee | |
# ------------------------ | |
module.exports = (grunt) -> | |
scaffold: | |
component: | |
options: | |
questions: [{ | |
name: 'path' |
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
// ==UserScript== | |
// @name Hide Complete JIRA items | |
// @namespace http://use.i.E.your.homepage/ | |
// @version 0.1 | |
// @description I find it tricky to distinguish between complete and incomplete items on the planning page of a JIRA sprint. This DIRTY code fades complete items out. You can still hover the items to see what they are. | |
// @match https://serverdensity.atlassian.net/secure/* | |
// @copyright 2012+, You | |
// @require http://code.jquery.com/jquery-latest.js | |
// ==/UserScript== |
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
shuffleForKlondike = () -> | |
suits = _.shuffle(['clubs', 'spades', 'diamonds', 'hearts']) | |
range = [1..13] | |
deck = | |
clubs: | |
cards: _.shuffle(range) | |
index: 0 | |
spades: | |
cards: _.shuffle(range) |
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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
var turn = 10; | |
var turned = 0; | |
var stop = false; |
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
<script type="text/view> | |
<% if ( SystemOwners !== undefined && SystemOwners.Name ) { %> | |
<p>System owners is <%= SystemOwners.Name %></p> | |
<!-- Even when _embedded.SystemOwners[0].Name is a string this html will never be outputted --> | |
<% } else { %> |
NewerOlder