Skip to content

Instantly share code, notes, and snippets.

View scytacki's full-sized avatar

Scott Cytacki scytacki

  • Concord Consortium
  • Medford, MA
View GitHub Profile
A ActionView::Template::Error occurred in external_activities#edit:
undefined method `has_role?' for nil:NilClass
app/views/external_activities/_form.html.haml:34:in `block (2 levels) in _app_views_external_activities__form_html_haml___2532007193654664101_95884160'
-------------------------------
Request:
-------------------------------
* URL : https://learn.concord.org/eresources/103/edit
A NameError occurred in external_activity_data#create:
undefined local variable or method `verify_request_is_peer' for #<Dataservice::ExternalActivityDataController:0x00000008a28958>
app/controllers/dataservice/external_activity_data_controller.rb:10:in `can_create'
-------------------------------
Request:
-------------------------------
* URL : https://learn.staging.concord.org/dataservice/external_activity_data/174
@scytacki
scytacki / curl-post.sh
Last active September 15, 2015 20:37
Example of posting file to shutterbug
echo "content="$(cat post-content-test.html | python -c 'import sys,urllib;print urllib.quote(sys.stdin.read().strip())') | curl 'http://snapshot.concord.org/shutterbug/make_snapshot' -H 'Origin: http://concord-consortium.github.io' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,es-419;q=0.6,es;q=0.4' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Referer: http://concord-consortium.github.io/lara-interactive-api/' -H 'Connection: keep-alive' --data 'css=%3Clink+rel%3D%22stylesheet%22+href%3D%22css%2Fapp.css%22%3E&width=500&height=400&base_url=http%3A%2F%2Fconcord-consortium.github.io%2Flara-interactive-api%2F&format=png&quality=1' --data @-
@scytacki
scytacki / gist:0325156297b7404d4f57
Created September 8, 2015 20:48
exception when activating
I got this exception when activating the license '1 year Expiring (expiring on 5/24/2016)' from the Fathom Test License Keys document.
Process: FathomFull [35240]
Path: /Applications/Fathom 2.4/Fathom.app/Contents/MacOS/FathomFull
Identifier: org.concord.fathom
Version: Fathom 2.4 (2.40)
Code Type: X86 (Native)
Parent Process: launchd [356]
Responsible: FathomFull [35240]
echo "content="$(cat post-content.html | python -c 'import sys,urllib;print urllib.quote(sys.stdin.read().strip())') | curl 'http://snapshot.concord.org/shutterbug/make_snapshot' -H 'Origin: http://concord-consortium.github.io' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,es-419;q=0.6,es;q=0.4' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Referer: http://concord-consortium.github.io/lara-interactive-api/' -H 'Connection: keep-alive' --data 'css=%3Clink+rel%3D%22stylesheet%22+href%3D%22css%2Fapp.css%22%3E&width=500&height=400&base_url=http%3A%2F%2Fconcord-consortium.github.io%2Flara-interactive-api%2F&format=png&quality=1' --data @-
A ActionView::Template::Error occurred in imports#import_school_district_status:
undefined local variable or method `file' for #<#<Class:0x000000082a1bd0>:0x000000082e5e48>
app/views/imports/import_status.html.haml:149:in `_app_views_imports_import_status_html_haml___96091925585943741_68738520'
-------------------------------
Request:
-------------------------------
* URL : https://learn.staging.concord.org/imports/import_school_district_status
{
"description": "",
"editor_mode": 1,
"layout": 1,
"name": "ITSI Activity",
"notes": "",
"project_id": 6,
"related": null,
"theme_id": 12,
"thumbnail_url": "",
@scytacki
scytacki / gist:9b713b4a2e9b514cb284
Created June 22, 2015 18:01
ITSI activities that have both a sensor and model enabled - 224
198: Test
212: Wind generator - Jason
217: Virtual Greenhouse (2)
218: Voltage in a Simple Circuit (2)
238: Trial Act
374: Brine Shrimp
414: States of Matter (2)
416: Latent Heat (2)
454: Latent Heat (3)
463: Up and Down Heartbeats
@scytacki
scytacki / custom_name.ino
Last active August 29, 2015 14:23
customized name sketch
/*
Copyright (c) 2014 OpenSourceRF.com. All right reserved.
Copyright (c) 2015 Concord Consortium. All right reserved.
LGPL v 2.1 or later
*/
#include <RFduinoBLE.h>
// advertisement data, cannot be longer than 31 bytes
http://itsi.portal.concord.org/activities/10
Will the light glow if the test material is an insulator?
Will the light glow if the test material is a conductor?
default_response: insulator: conductor:
http://itsi.portal.concord.org/activities/215
Study the graph and determine the average force you used to lift the block up to the chair.
Enter the value of that force in the box below. Call it the "average force to lift the block straight up."
default_response: average force to lift the block straight up =