Skip to content

Instantly share code, notes, and snippets.

@oravecz
oravecz / .block
Last active March 2, 2017 15:11
Bubble Chart
license: gpl-3.0
height: 880
border: no
{
"http": true
}
@oravecz
oravecz / Angular Material Basic App 1.0.markdown
Created January 5, 2016 01:15
Angular Material Basic App 1.0
@oravecz
oravecz / assessment.json
Last active November 23, 2015 18:04
Class assessment results for 7BNJ3569QPYMCSZ5YGDBMWD5D4
{
"timed_out": false,
"count": 1,
"assessments": {
"http://mheducation.com/engrade/assessment/39531": {
"learners": {
"http://mheducation.com/connected/users/7TK8Y58VFO274PG7FBD7NHSWEE": {
"object": {
"@context": "http://purl.imsglobal.org/ctx/caliper/v1/Context",
"@id": "http://mheducation.com/engrade/assessment/39531/attempts/20791",
@oravecz
oravecz / Instructions.md
Last active August 29, 2015 14:12
Setting up MHE DEV server

Setting up McGraw-Hill development server

  1. Setup new virtual machine in Virtual Box
  2. New image based on clean install of ubuntu-14.04.1-server-amd64.iso
    1. Setup networking to use bridged mode (gets its own ip address)
  3. Install openssh
    1. sudo apt-get install openssh-client
    2. sudo apt-get install openssh-server
    3. sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
  4. sudo chmod a-w /etc/ssh/sshd_config.original
@oravecz
oravecz / 0_reuse_code.js
Last active August 29, 2015 14:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
{
"districts": [{
"sync": <boolean>,
"districtCEDId": <string>,
"districtENGId": <number|null>,
"districtName": <string>,
"schools": [{
"sync": <boolean>,
"schoolCEDId": <string>,
"schoolENGId": <number|null>,
@oravecz
oravecz / Code
Last active May 11, 2020 08:28
Custom format support in fge/json-schema-validator
protected static Library getFormatLibrary(String version) throws IOException {
String formatPath = "/xapi/schemas/" + version + "/formats.json";
final LibraryBuilder libraryBuilder = DraftV4Library.get().thaw();
final JsonNode formats = JsonLoader.fromResource(formatPath);
// Iterate over each of the custom formats in the file
final Iterator<String> names = formats.fieldNames();
while (names.hasNext()) {
{
"$schema": "http://json-schema.org/draft-04/schema#",
"additionalProperties": false,
"type": "object",
"properties": {
"about": {
"id": "#about",
"type": "object",
"required": [
"version"
@oravecz
oravecz / example1.js
Last active August 29, 2015 14:05
Services Presentation
function myFilter( $locale ) {
var formats = $locale.NUMBER_FORMATS;
return something;
}
myFilter.$inject = ['$locale'];
$injector.invoke( myFilter );
$injector.invoke( ['$locale', myFilter] );