Skip to content

Instantly share code, notes, and snippets.

Stephen Bannasch stepheneb

Block or report user

Report or block stepheneb

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
@stepheneb
stepheneb / brew-info-ffmpeg.json
Created Nov 5, 2013
brew info --json=v1 ffmpeg
View brew-info-ffmpeg.json
{
"caveats": null,
"conflicts_with": [],
"dependencies": [
"pkg-config",
"texi2html",
"yasm",
"x264",
"faac",
"lame",
View gist:7313227
$ brew regenerate
brew install -v ack
brew install -v apple-gcc42
brew install -v autoconf213
brew install -v ccache
brew install -v cmake
brew install -v couchdb
brew install -v elixir
brew install -v wget
brew install -v gawk
@stepheneb
stepheneb / brew-regenerate.rb
Created Nov 5, 2013
generates the commands to re-install home-brew packages from scratch
View brew-regenerate.rb
# Outputs brew install commands that can be used to re-install all packages
# Place brew-regenerate on the PATH
# run: brew regenerate
require 'formula'
require 'tab'
# To debug with pry install the gem into the Ruby 1.8 installed with the system.
# /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
#
View gist:6157300
$ make test-mocha
Running Mocha tests ...
․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․․
183 passing (6 seconds)
1 failing
1) MD2D modeler when rectangle with electric field is removed "before each" hook:
View latent-heat.json
{
"title": "Latent Heat",
"publicationStatus": "draft",
"subtitle": "",
"about": "",
"models": [
{
"type": "md2d",
"id": "page7$0",
"url": "interactives/latent-heat-model.json",
@stepheneb
stepheneb / README.md
Last active Jan 8, 2020
IE Bug: Drag outside iframe and mouseup on IE10
View README.md

IE Bug: Drag outside iframe and mouseup on IE10

The green circle is draggable.

The drag operation should be canceled when the drag extends outside of the iframe boundary and the drag is released.

This works in Chrome, Firefox, and Safari.

In IE10 (and probably IE9) a mouse-up (drag-end) event occurring outside the iframe is not processed correctly and the drag is now stuck on.

View lab-make-jquery.md

Comparing results of make task to build jquery in standard working dir and in a new clone.

building jquery with make task after running make clean in current working dir for Lab:

cd vendor/jquery; npm install; \
   npm install grunt-cli; \
	 ./node_modules/grunt-cli/bin/grunt
npm WARN prefer global grunt-cli@0.1.9 should be installed with -g
npm http GET https://registry.npmjs.org/grunt-cli
@stepheneb
stepheneb / wise-vle-eclipse.diff
Created May 6, 2013
uncommitted changes in Eclipse settings after setting up WISE
View wise-vle-eclipse.diff
diff --git a/.classpath b/.classpath
index 81366f4..9b28d3d 100644
--- a/.classpath
+++ b/.classpath
@@ -1,9 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="src" output="target/classes" path="src/main/java"/>
- <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
- <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/webapp/WEB-INF"/>
@stepheneb
stepheneb / airbags.v15i-includes-inquiry-export.nlogo
Last active Dec 16, 2015
AirBags NetLogo model with the inquiry-logging module built-in
View airbags.v15i-includes-inquiry-export.nlogo
@stepheneb
stepheneb / gist:5462997
Last active Dec 16, 2015
console output on creation of new WIS4 project in authoring tool
View gist:5462997
Apr 25, 2013 4:41:27 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'dispatcher'
Apr 25, 2013 4:41:30 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Apr 25, 2013 4:41:30 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Apr 25, 2013 4:41:30 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 14162 ms
java.lang.NullPointerException
at org.telscenter.sail.webapp.presentation.web.controllers.author.project.AuthorProjectController.handleRequestInternal(AuthorProjectController.java:208)
You can’t perform that action at this time.