Skip to content

Instantly share code, notes, and snippets.

View scottmessinger's full-sized avatar

Scott Ames-Messinger scottmessinger

View GitHub Profile
@scottmessinger
scottmessinger / gist:4639911
Created January 26, 2013 03:25
500 errors
Jan 18 20:53:16 topsoil app/web.2: Completed 500 Internal Server Error in 7ms
Jan 18 21:50:51 topsoil app/web.2: Completed 500 Internal Server Error in 7ms
Jan 19 10:52:34 topsoil app/web.2: Completed 500 Internal Server Error in 26ms
Jan 19 10:52:34 topsoil app/web.2: Completed 500 Internal Server Error in 3ms
Jan 19 10:52:37 topsoil app/web.1: Completed 500 Internal Server Error in 8ms
Jan 19 10:52:38 topsoil app/web.1: Completed 500 Internal Server Error in 2ms
Jan 19 10:52:41 topsoil app/web.1: Completed 500 Internal Server Error in 2ms
Jan 19 10:52:41 topsoil app/web.1: Completed 500 Internal Server Error in 2ms
Jan 19 14:07:35 topsoil app/web.2: Completed 500 Internal Server Error in 29ms
Jan 19 14:59:33 topsoil app/web.2: Completed 500 Internal Server Error in 8ms
@scottmessinger
scottmessinger / gist:4343132
Created December 20, 2012 05:22
State Chart & Overview of Standards
State Chart:
Standards:
route: ':course_id/:node_id/standards',
firstTime: Ember.Route.extend({
}),
search: Ember.Route.extend({
setup: function(router, context){
var course = context.get('course'),
node = context.get('node'),
@scottmessinger
scottmessinger / number operations in base ten.json
Created November 27, 2012 21:46
asn search returned json
[
{
"id": "s1143459",
"data": {
"description": [
"Number and Operations in Base Ten$$$Understand place value.$$$Read and write numbers to 1000 using base-ten numerals, number names, and expanded form."
],
"education_level": [
"2"
],
[
{
"subject": "Math",
"gradeLevels" : [01],
"gradeLevel": "Grade 1",
"ancestors": [
{"hierarchicalName": "Domain", "order": 1, "statement": "Numbers & Operations in Base Test"},
{"hierarchicalName": "Cluster", "order": 3, "statement": "Place Value"}
],
"statement":"Add within 100, including adding a two-digit number and a one-digit number, and adding a two-digit number and a multiple of 10, using concrete models or drawings and strategies based on place value, properties of operations, and/or the relationship between addition and subtraction; relate the strategy to a written method and explain the reasoning used. Understand that in adding two-digit numbers, one adds tens and tens, ones and ones; and sometimes it is necessary to compose a ten.",
@scottmessinger
scottmessinger / 1_returned.json
Created November 20, 2012 23:49
Discussion of the returned search json
"This is the current returned json."
{
"id":"s1143442",
"data":{
"description":[
"Number and Operations in Base Ten$$$Understand place value.$$$Compare two two-digit numbers based on meanings of the tens and ones digits, recording the results of comparisons with the symbols >, =, and <."
],
"education_level":[
"1"
@scottmessinger
scottmessinger / asn_maryland.json
Created November 16, 2012 22:19
Maryland ASN Statement
{
"id": "http://asn.jesandco.org/resources/S10169A7",
"asn_identifier": "http://purl.org/ASN/resources/S10169A7",
"text": "c) Transfer a repeating pattern from one medium to a different medium using no more than 3 different objects in the core of the pattern",
"dcterms_description": {
"literal": "c) Transfer a repeating pattern from one medium to a different medium using no more than 3 different objects in the core of the pattern",
"language": "en-US"
},
"asn_authorityStatus": {
"uri": "http://purl.org/ASN/scheme/ASNAuthorityStatus/Original",

Below, I lay out the simplified, yet detailed schema I'm proposing for standards. It addresses many of the issues seen in current standard schemas.

  • GUID
  • URI
  • Hierarchy
    • Number # The depth of the standard--how many levels deep it's nested in the document
    • Description # e.g. "Standard" or "Domain" or "Cluster"
  • Codes
    • Long Code # the official code
  • Short Code # the code used by teachers
@scottmessinger
scottmessinger / bad.css.scss
Created October 7, 2012 18:59
bad.css.scss
#demo-section {
margin-top: 20px;
margin-bottom: 60px;
.rows-wrap {
padding-top: 20px;
}
.browser-window {
margin-left: -1 * $gutter-width;
@scottmessinger
scottmessinger / gist:3451896
Created August 24, 2012 15:16
Tracking codes
<!-- BOTTOM OF HEAD -->
<!-- Start Visual Website Optimizer Asynchronous Code -->
<script type='text/javascript'>
var _vwo_code=(function(){
var account_id=26690,
settings_tolerance=2000,
library_tolerance=1500,
use_existing_jquery=false,
@scottmessinger
scottmessinger / apiv1users_controller.rb
Created August 24, 2012 14:47
validations for hlavka.js
def show
if params[:id] == "validate"
u = params[:user]
if u[:username]
@user = User.find_by_username(u[:username])
elsif u[:emails]
@user = User.find_by_emails(u[:emails])
end
!@user.nil? ? text = "false" : text = "true"