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
@scytacki
scytacki / gist:75f108b73101f7c86fea
Created May 11, 2015 15:14
Error with new LARA theme
An ActionView::Template::Error occurred in themes#index:
theme-itsi-survey.css isn't precompiled
actionpack (3.2.19) lib/sprockets/helpers/rails_helper.rb:142:in `digest_for'
-------------------------------
Request:
-------------------------------
void QlmLicenseWizardDlg::LaunchApplicationAndWait(CString strCmdLine, CString strArgs, CString strRunningDir){
SHELLEXECUTEINFO ShExecInfo;
ShExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);
ShExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
ShExecInfo.hwnd = NULL;
ShExecInfo.lpVerb = NULL;
ShExecInfo.lpFile = strCmdLine.GetBuffer();
ShExecInfo.lpParameters = strArgs.GetBuffer();
ShExecInfo.lpDirectory = strRunningDir.GetBuffer();
ShExecInfo.nShow = SW_SHOW;
// ConsoleApplication2.cpp : Defines the entry point for the console application.
//
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <strsafe.h>
#define BUFSIZE 4096
@scytacki
scytacki / gist:479f186826dcb1c7322a
Created May 23, 2015 13:10
ConsoleAppliction2
// ConsoleApplication2.cpp : Defines the entry point for the console application.
//
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <strsafe.h>
#define BUFSIZE 4096
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 =
@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
@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
{
"description": "",
"editor_mode": 1,
"layout": 1,
"name": "ITSI Activity",
"notes": "",
"project_id": 6,
"related": null,
"theme_id": 12,
"thumbnail_url": "",
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
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 @-