Skip to content

Instantly share code, notes, and snippets.

Andrew Serff andrewserff

Block or report user

Report or block andrewserff

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andrewserff
andrewserff / FormatTest-after.jsx
Created Oct 23, 2015
jsx atom formatting issue
View FormatTest-after.jsx
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>
View jackieChanCommands.json
{"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 Aug 29, 2015
Example Workflow Config for the json-data-generator (https://github.com/acesinc/json-data-generator)
View jackieChanWorkflow.json
{
"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 Aug 29, 2015
Example command message for documentation of json-data-generator (https://github.com/acesinc/json-data-generator)
View exampleJackieChanCommand.json
{
"timestamp":"2015-05-20T22:05:44.789Z",
"style":"DRUNKEN_BOXING",
"action":"PUNCH",
"weapon":"CHAIR",
"target":"ARMS",
"strength":8.3433
}
View jackieChanSimConfig.json
{
"workflows": [{
"workflowName": "jackieChan",
"workflowFilename": "jackieChanWorkflow.json"
}],
"producers": [{
"type": "kafka",
"broker.server": "192.168.59.103",
"broker.port": 9092,
"topic": "jackieChanCommand",
View particleWall.js
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) {
View coordinator.log
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
@andrewserff
andrewserff / git-status-output
Created Sep 20, 2011
brew git status output
View 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
You can’t perform that action at this time.