Skip to content

Instantly share code, notes, and snippets.

Avatar

Sam Fentress sfentress

  • Concord Consortium
View GitHub Profile
View gist:9838394
$ 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
[...]
View gist:82cb804b34409ca7e698

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".

View sparks.json
{
"show_oscilloscope": "true",
"allow_move_yellow_probe": "true",
"circuit": [
{
"type": "function generator",
"UID": "source",
"frequencies": [
"logarithmic",
100,
View gist:c261e4b1cf50d69e2112
<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;}
}
@sfentress
sfentress / NetLogoEmbedTest.java
Created Dec 8, 2008
NetLogo 4.1pre6 Embedding Test
View NetLogoEmbedTest.java
package org.concord.otrunknl4.test;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.io.IOException;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import org.nlogo.app.InterfaceComponent;
View NetLogoLogTest.java
/**
* This test was created to test out the new features in NetLogo 4.1 pre 6. Specifically, it
* was designed to test embedding, controlling and logging of applet-like NetLogo models.
*
* @author sfentress
*
*/
public class NetLogoLogTest
{
View jruby gem env
dhcp155:rigse sfentress$ jruby -S gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.3
- RUBY VERSION: 1.8.6 (2009-05-19 patchlevel 287) [java]
- INSTALLATION DIRECTORY: /Users/sfentress/git/jruby/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /Users/sfentress/git/jruby/bin/jruby
- EXECUTABLE DIRECTORY: /Users/sfentress/git/jruby/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-java-1.5
View gist:337533
load('./spec/support/env.rhino.js')
load('./spec/support/jquery.js')
load('./spec/lib/jspec.js')
load('./spec/lib/jspec.xhr.js')
load('./spec/lib/jspec.jquery.js')
load('lib/etorki.js')
load('spec/unit/spec.helper.js')
function reporter(results, options) {
var w = new java.io.FileWriter('test-reports/jspec.xml');
View gist:424260
textView: SC.ScrollView.design({
hasHorizontalScroller: NO,
layout: { left: 0, top: 0, right: 0, height: 180 },
contentView: SC.LabelView.design({
layout: { left: 0, top: 0, right: 0, bottom: 0 },
isEditable: NO,
escapeHTML: NO,
valueBinding: 'Geniverse.articleController.combinedArticle',
// only check after user flips back to static (non-editing) view
View NetLogoStandalone.java
import java.io.*;
import java.net.*;
import javax.swing.*;
import org.nlogo.lite.InterfaceComponent;
/**
* This is an example which tries to load a model from a URL, using InterfaceComponent.openFromSource().
* This model will fail to work correctly because it references an image that it cannot find.
*