Skip to content

Instantly share code, notes, and snippets.

View andrewserff's full-sized avatar

Andrew Serff andrewserff

View GitHub Profile
@andrewserff
andrewserff / FormatTest-after.jsx
Created October 23, 2015 14:39
jsx atom formatting issue
var React = require('react');
class FormatTest extends React.Component {
render() {
var x = this
.state
.data
.map(function(d, index) {
return <tr key={index}>
<td>{d.name}</td>
@andrewserff
andrewserff / git-status-output
Created September 20, 2011 04:26
brew git status output
[local (master)⚡]> sudo git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# Library/Aliases/mikmod
# Library/Contributions/examples/brew-audit.rb
# Library/Contributions/examples/brew-fetch.rb
# Library/Contributions/examples/brew-options.rb
# Library/Contributions/examples/brew-test.rb
@andrewserff
andrewserff / jackieChanCommands.json
Last active August 29, 2015 14:21
Example output from the json-data-generator (https://github.com/acesinc/json-data-generator)
{"timestamp":"2015-05-20T22:21:18.036Z","style":"WUSHU","action":"BLOCK","weapon":"CHAIR","target":"BODY","strength":4.7912}
{"timestamp":"2015-05-20T22:21:19.247Z","style":"DRUNKEN_BOXING","action":"PUNCH","weapon":"BROAD_SWORD","target":"ARMS","strength":3.0248}
{"timestamp":"2015-05-20T22:21:20.947Z","style":"DRUNKEN_BOXING","action":"BLOCK","weapon":"ROPE","target":"HEAD","strength":6.7571}
{"timestamp":"2015-05-20T22:21:22.715Z","style":"WUSHU","action":"KICK","weapon":"BROAD_SWORD","target":"ARMS","strength":9.2062}
{"timestamp":"2015-05-20T22:21:23.852Z","style":"KUNG_FU","action":"PUNCH","weapon":"BROAD_SWORD","target":"HEAD","strength":4.6202}
{"timestamp":"2015-05-20T22:21:25.195Z","style":"KUNG_FU","action":"JUMP","weapon":"ROPE","target":"ARMS","strength":7.5303}
{"timestamp":"2015-05-20T22:21:26.492Z","style":"DRUNKEN_BOXING","action":"PUNCH","weapon":"STAFF","target":"HEAD","strength":1.1247}
{"timestamp":"2015-05-20T22:21:28.042Z","style":"WUSHU","action":"BLOCK","weapon":"STAFF","target":"ARMS
@andrewserff
andrewserff / jackieChanWorkflow.json
Last active August 29, 2015 14:21
Example Workflow Config for the json-data-generator (https://github.com/acesinc/json-data-generator)
{
"eventFrequency": 400,
"varyEventFrequency": true,
"repeatWorkflow": true,
"timeBetweenRepeat": 1500,
"varyRepeatFrequency": true,
"steps": [{
"config": [{
"timestamp": "now()",
"style": "random('KUNG_FU','WUSHU','DRUNKEN_BOXING')",
@andrewserff
andrewserff / exampleJackieChanCommand.json
Last active August 29, 2015 14:21
Example command message for documentation of json-data-generator (https://github.com/acesinc/json-data-generator)
{
"timestamp":"2015-05-20T22:05:44.789Z",
"style":"DRUNKEN_BOXING",
"action":"PUNCH",
"weapon":"CHAIR",
"target":"ARMS",
"strength":8.3433
}
@andrewserff
andrewserff / jackieChanSimConfig.json
Created May 20, 2015 22:04
Example Simulation Config for the json-data-generator (https://github.com/acesinc/json-data-generator)
{
"workflows": [{
"workflowName": "jackieChan",
"workflowFilename": "jackieChanWorkflow.json"
}],
"producers": [{
"type": "kafka",
"broker.server": "192.168.59.103",
"broker.port": 9092,
"topic": "jackieChanCommand",
Leap.loop({
hand: function (hand) {
var pos = hand.screenPosition();
if (pJS) {
pJS.interactivity.mouse.pos_x = pos[0] + 100;
pJS.interactivity.mouse.pos_y = pos[1] + 350;
if (pJS.retina) {
2015-05-06T20:48:43,482 INFO [main] io.druid.guice.PropertiesModule - Loading properties from common.runtime.properties
2015-05-06T20:48:43,487 INFO [main] io.druid.guice.PropertiesModule - Loading properties from runtime.properties
May 06, 2015 8:48:43 PM org.hibernate.validator.internal.util.Version <clinit>
INFO: HV000001: Hibernate Validator 5.1.3.Final
2015-05-06T20:48:44,030 INFO [main] io.druid.guice.JsonConfigurator - Loaded class[class io.druid.guice.ExtensionsConfig] from props[druid.extensions.] as [ExtensionsConfig{searchCurrentClassloader=true, coordinates=[io.druid.extensions:druid-examples, io.druid.extensions:druid-kafka-eight, io.druid.extensions:mysql-metadata-storage], defaultVersion='0.7.1.1', localRepository='/Users/andrewserff/.m2/repository', remoteRepositories=[https://repo1.maven.org/maven2/, https://metamx.artifactoryonline.com/metamx/pub-libs-releases-local]}]
2015-05-06T20:48:44,161 INFO [main] io.druid.initialization.Initialization - Loading extension[io.druid.extensions:druid-exa