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 / classlist-shim-for-ie.js
Created May 21, 2012 19:53 — forked from stepheneb/README.md
NetLogo Data for DG, using generic dgApi
/*
* Minimal classList shim for IE 9
* By Devon Govett
* MIT LICENSE
*/
if (!("classList" in document.documentElement) && Object.defineProperty && typeof HTMLElement !== 'undefined') {
Object.defineProperty(HTMLElement.prototype, 'classList', {
get: function() {
@sfentress
sfentress / two-atoms-two-elements.json
Created May 30, 2012 14:33
Two atoms different elements
{
"temperature_control": false,
"epsilon": -0.4000000059604645,
"sigma": 0.14,
"lennard_jones_forces": true,
"coulomb_forces": false,
"width": 4.5,
"height": 3,
"atoms": {
"X": [
@sfentress
sfentress / gist:3137964
Created July 18, 2012 18:38
Error pushing couchapp
On Mac OS X 10.6.8:
$ curl -O http://python-distribute.org/distribute_setup.py
$ sudo python distribute_setup.py
$ sudo easy_install pip
$ sudo pip install couchapp
$ sudo pip install --upgrade couchapp
$ couchapp --version
Couchapp (version 1.0.1)
http://lab.dev.concord.org/examples/interactives/interactives.html#interactives/oil-and-water-shake.json:
browser version cpu/os date molecules temperature 100 Steps (steps/s) 100 Steps w/graphics interactive
Safari 5.1.7/534.57.2 Intel Mac OS X 10_6_8 2012-09-17 14:32 44 300 84.0 65.1 /examples/interactives/interactives.html#interactives/oil-and-water-shake.json
Safari 5.1.7/534.57.2 Intel Mac OS X 10_6_8 2012-09-17 14:32 44 300 85.8 60.3 /examples/interactives/interactives.html#interactives/oil-and-water-shake.json
Safari 5.1.7/534.57.2 Intel Mac OS X 10_6_8 2012-09-17 14:32 44 300 88.3 66.1 /examples/interactives/interactives.html#interactives/oil-and-water-shake.json
Safari 5.1.7/534.57.2 Intel Mac OS X 10_6_8 2012-09-17 14:32 44 300 85.8 64.1 /examples/interactives/interactives.html#interactives/oil-and-water-shake.json
npm http 304 https://registry.npmjs.org/difflet
npm ERR! Error: ENOENT, chmod '/Users/sfentress/projects/lab/src/vendor/jquery/node_modules/grunt/node_modules/nodeunit/node_modules/tap/node_modules/difflet/example/cmp_object.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Darwin 10.8.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "grunt@0.3.15"
npm ERR! cwd /Users/sfentress/projects/lab/src/vendor/jquery
$ npm cache clean
npm ERR! Error: EPERM, chmod '/Users/sfentress/.npm/buffer-equal/0.0.0/package'
npm ERR! { [Error: EPERM, chmod '/Users/sfentress/.npm/buffer-equal/0.0.0/package']
npm ERR! errno: 50,
npm ERR! code: 'EPERM',
npm ERR! path: '/Users/sfentress/.npm/buffer-equal/0.0.0/package' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 10.8.0
$ make test
./script/generate-js-config.rb
./script/generate-js-version.rb
mkdir -p server/public/lab-amd
rsync -aq src/lab/* server/public/lab-amd
[...]
converting MML files...converted 0 MML files.
./node-bin/create-mml-html-index
Created index at /Users/sfentress/projects/lab/server/public/imports/legacy-mw-content/legacyMMLRunnables.html
[...]
// Stand-alone
fileManagerClient.init({
showMenu: true,
services: [
{
service: "ConcordCloud",
open: true,
save: true,
autosave: true
},
{
"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"
},
{