Skip to content

Instantly share code, notes, and snippets.

<html><head>
<link rel="stylesheet" type="text/css" href="../../shared/riteslightweightonly.css" />
<script type="text/javascript" src="http://static.ritesproject.net/investigations/shared/file/d3.v2.min.js"></script>
<script type="text/javascript" src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script src="../../shared/file/shutterbug.js"></script>
<script>new Shutterbug('#table');</script>
<script type="text/javascript">
function prettify() {
if ($('#simulation').css('display') == "inline")
ENV['CONCORD_CONFIGURED_PORTALS'] ||= 'LOCALHOST'
ENV['CONCORD_LOCALHOST_URL'] ||= 'http://localhost:9000/'
ENV['CONCORD_LOCALHOST_CLIENT_ID'] ||= 'localhost'
ENV['CONCORD_LOCALHOST_CLIENT_SECRET'] ||= '1f0cde4b-b32e-4eac-be51-xxxxxxxxx'
@knowuh
knowuh / mexii.py
Created May 22, 2014 22:02
Blender MultiExtrude from Blender Artists Liero
################################################################################
# Repeats extrusion + rotation + scale for one or more faces #
################################################################################
bl_info = {
"name": "MExtrude",
"version": (1, 3, 0),
"blender": (2, 6, 8),
"location": "View3D > Tool Shelf",
"description": "Repeat extrusions from faces to create organic shapes",
@knowuh
knowuh / gist:11062679
Created April 18, 2014 20:21
Example of long 'data:image' urls breaking css highlighting.
.activity-nav .prev{
@extend .cf;
padding: 8px;
float: right;
float: right;
background-image: url('/assets/prev.png');
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpGQzdGMTE3NDA3MjA2ODExODA4M0IxODUyNUFENjlEMCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo2QjAzQjM4NDlFREExMUUyOUJENUJFNkJGMTFGNjQ4RiIg
@knowuh
knowuh / console session
Created January 22, 2014 22:13
xhtml fails validation when being copied in LARA
irb(main):049:0> xhtml.duplicate
=> #<Embeddable::Xhtml id: nil, name: "", content: "<p><p>Volatile organic compounds (VOCs) include man...", created_at: nil, updated_at: nil>
irb(main):050:0> dup = _
=> #<Embeddable::Xhtml id: nil, name: "", content: "<p><p>Volatile organic compounds (VOCs) include man...", created_at: nil, updated_at: nil>
irb(main):051:0> dup.save
(1.0ms) BEGIN
(0.8ms) ROLLBACK
=> false
irb(main):052:0> dup.errors
=> #<ActiveModel::Errors:0x000000059c3380 @base=#<Embeddable::Xhtml id: nil, name: "", content: "<p><p>Volatile organic compounds (VOCs) include man...", created_at: nil, updated_at: nil>, @messages={:content=>["Unexpected end tag : p"]}>
@knowuh
knowuh / gist:7949993
Created December 13, 2013 19:38
Lab build error. December 13, 2013
converting updated MML files ... ...................................................................................................................................
converted 1316 MML files.
./node-bin/create-mml-html-index
/Users/npaessel/lab/javascript/lab/node_modules/jade/lib/runtime.js:198
throw err;
^
TypeError: Jade:75
73| mwLink.href = newhref;
1, 2013-08-23, Sensor Activity Example, private
6, 2013-08-27, (2013-2014) HAS Beginning-of-Year Pretests, published
7, 2013-08-27, 2013 High-Adventure Science Webinar 1, published
11, 2013-09-17, 2013-2014 Water Post-test, private
12, 2013-09-17, 2013-2014 Energy Post-test, private
13, 2013-09-17, 2013-2014 Climate Post-test, private
14, 2013-09-17, 2013-2014 Climate Pre-test, private
15, 2013-09-17, 2013-2014 Energy Pre-test, private
16, 2013-09-17, 2013-2014 Water Pre-test, private
----------- General information -----------
max = 8
count = 3
active = 0
inactive = 3
Waiting on global queue: 0
----------- Application groups -----------
/web/portal/current:
App root: /web/portal/current
@knowuh
knowuh / console
Created November 3, 2013 01:06
Activty 7 full console log
Nov 02, 2013 9:05:59 PM org.concord.LaunchJnlp initAndLaunch
INFO: Found folder=/Users/npaessel/Library/Application Support/ConcordConsortium/General-1.0
Nov 02, 2013 9:05:59 PM org.concord.LaunchJnlp setResourceLocation
WARNING: Resource folder /Users/npaessel/Library/Application Support/ConcordConsortium/General-1.0/resources does not exist.
Caching files...
Missing Application-Name: manifest attribute for: http://jars.dev.concord.org/dev3/org/concord/utilities/response-cache/response-cache-0.1.0-20110101.051026-218.jar
Missing Permissions manifest attribute for: http://jars.dev.concord.org/dev3/org/concord/utilities/response-cache/response-cache-0.1.0-20110101.051026-218.jar
Missing Codebase manifest attribute for: http://jars.dev.concord.org/dev3/org/concord/utilities/response-cache/response-cache-0.1.0-20110101.051026-218.jar
Nov 02, 2013 9:05:59 PM org.concord.LaunchJnlp launch
INFO: Semi-normal launch: net.sf.sail.emf.launch.EMFLauncher2
@knowuh
knowuh / gist:7107926
Last active December 26, 2015 06:29
Error when trying to update learner data
json = data.to_json
=> "[{\"type\":\"open_response\",\"question_id\":\"624\",\"answer\":\"there is no exact statement that there will not be a leak in the line pumping water out of the ground or other accidental spilling of oil therefore the water could become contaminated\"},{\"type\":\"open_response\",\"question_id\":\"625\",\"answer\":\"there are always a percentage of accidents or problems that come with drilling for oil therefore we must take these into account before we attempt to drill so there are no problems in the community they are drilling in\"},{\"type\":\"open_response\",\"question_id\":\"626\",\"answer\":\"there is no waste there is no distribution of water to places it was not before there is no pollution and there is no way to spread toxic waste if there was an accident \"},{\"type\":\"open_response\",\"question_id\":\"627\",\"answer\":\"with all energy sources there are chances of problems however solar power is unlimited and there is no way to run out of the resource used to create it and t