Skip to content

Instantly share code, notes, and snippets.

View sfentress's full-sized avatar

Sam Fentress sfentress

  • Concord Consortium
View GitHub Profile
@sfentress
sfentress / script.js
Created June 14, 2016 13:32
Traits from filename
var img = org.getImageName(), // "st_m_wing_allLimb_a5_flair_noHorn_noRostral_bogbreath.png"
imgArr = img.split("_"), // ["st", "m", "wing", "allLimb", "a5", "flair", "noHorn", "noRostral", "bogbreath.png"]
traitCodes = {
st: "Steel",
co: "Copper",
ar: "Silver",
go: "Gold",
ch: "Charcoal",
{
"data": [
{
"session": "be8ecbed-a242-fc76-eb57-2ed6e4b343cc",
"time": 1435144215206,
"prettyTime": "Wed Jun 24 2015 07:10:15 GMT-0400 (EDT)",
"timeDrift": -14473417.5,
"event": "Started session"
},
{
// Stand-alone
fileManagerClient.init({
showMenu: true,
services: [
{
service: "ConcordCloud",
open: true,
save: true,
autosave: true
},
<html>
<head>
<style>
@media all and (max-width: 1024px) {
h1 { font-family:"open sans"; font-size:40px; font-weight:300; color:white; transition:all 0.6s; -webkit-transition:all 0.6s;}
h2 { font-family:"open sans"; font-size:20px; font-weight:300; color:white; transition:all 0.6s; -webkit-transition:all 0.6s;}
}
{
"show_oscilloscope": "true",
"allow_move_yellow_probe": "true",
"circuit": [
{
"type": "function generator",
"UID": "source",
"frequencies": [
"logarithmic",
100,

Proposed format for specifying synthetic data

This file should be edited freely.

Scenario: Find an event with a value

In this scenario, we want to see if the event "Score" ever happens with the property "{points_earned: 10}" in the properties hash. If we find one, we want to add a new event, "User scored max points".

$ RAILS_ENV=production bin/rake app:setup:new_app
Unable to load configuration from /Users/sfentress/projects/rigse/config/newrelic.yml
Problem processing key 'host' in config/mailer.yml
undefined method `host=' for ActionMailer::Base:Class
This task will:
1. create default users and roles
[...]
/**
* @license
* Pixi.JS - v1.3.0
* Copyright (c) 2012, Mat Groves
* http://goodboydigital.com/
*
* Compiled: 2013-08-28
*
* Pixi.JS is licensed under the MIT License.
* http://www.opensource.org/licenses/mit-license.php
Event: Time:
Starts task 1 1
Completes task 1 10
Submits drake 1 11
Starts task 2 12
Submits incorrect drake 15
Submits drake 2 21
Completes task 2 22
@sfentress
sfentress / gist:5629702
Last active December 17, 2015 15:09
Real and manually-entered GG log events compared
//Real task completion:
{
"session": "c6399317-7ac4-16d5-948f-44059569ae29",
"time": 1366800601203,
"prettyTime": "Wed Apr 24 2013 06:50:01 GMT-0400 (Eastern Daylight Time)",
"internetTime": "@493.07",
"timeDrift": -14402123.5,
"event": "Completed task",
"parameters": {
"name": "Task 1",