Skip to content

Instantly share code, notes, and snippets.

#/usr/bin/env bash
# Move the downloaded zip to the evaluating directory
download=$(find ~/Desktop -regex '.*/[0-9]\{6,\}\.zip')
zip=$(basename "$download")
homework=${zip%.*}
echo "Download: $download"
echo "Zip: $zip"
echo "Homework: $homework"
#/usr/bin/env bash
# Move the downloaded zip to the evaluating directory
download=$(find ~/Desktop -regex '.*/[0-9]\{6,\}\.zip')
zip=$(basename "$download")
candidate=${zip%.*}
echo $download
echo $zip
echo $candidate
#/usr/bin/env bash
# execute as ./grade.sh
# Assumes homework submission was downloaded to your Desktop as <homework_id>.zip
# Unzips to ./<homework_id>
# rsync's to homeworkgrading.com
# opens an ssh connection to homeworkgrading.com in the terminal window
# launches VSCode
# Move the downloaded zip to the evaluating directory
$ yarn install 0s
yarn install v1.16.0
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > @cmsgov/design-system-core@1.30.3" has unmet peer dependency "prop-types@^15.0.0 || ^16.0.0".
warning "@cmsgov/design-system-core > downshift@1.31.16" has unmet peer dependency "prop-types@>=15".
warning "@cmsgov/medicare-site-package > @cmsgov/design-system-core@1.31.1" has unmet peer dependency "prop-types@^15.0.0 || ^16.0.0".
warning "html-react-parser > react-dom-core@0.0.3" has unmet peer dependency "fbjs@*".
warning "html-react-parser > react-dom-core@0.0.3" has unmet peer dependency "object-assign@*".
@robwilkerson
robwilkerson / okta-info.js
Created April 10, 2017 18:31
The stages of what I'm seeing
// response body from calling /login
{
"message":"Credentials verified. Please send MFA request.",
"data":{
"factors":{
"1f7973e8-0f06-417a-b040-2ad0c863d20c":{
"id":"1f7973e8-0f06-417a-b040-2ad0c863d20c","type":"call","profile":{"phoneNumber":"+1 XXX-XXX-1069"}
},
"b43ac673-464a-4f07-9e2a-024351e247f9":{
"id":"b43ac673-464a-4f07-9e2a-024351e247f9","type":"sms","profile":{"phoneNumber":"+1 XXX-XXX-1069"}

Keybase proof

I hereby claim:

  • I am robwilkerson on github.
  • I am robwilkerson (https://keybase.io/robwilkerson) on keybase.
  • I have a public key whose fingerprint is E067 9599 5EC2 5788 A626 40AB 1EBE 7ECC E88F 3AC9

To claim this, I am signing this object:

@robwilkerson
robwilkerson / test-output
Created April 18, 2016 12:57
mocha-eslint test fails
$ npm test 2s
> mocha-eslint@2.0.2 test /Users/robwilkerson/Development/npm/mocha-eslint
> node tests/runner
Acceptance: mocha-eslint
1) should pass test for lintSucceed.js
2) should fail test for lintFail.js
@robwilkerson
robwilkerson / fixtures.js
Created April 5, 2016 11:28
A simple integration test file
'use strict';
let Promise = require('bluebird');
let db = require('../config/knexfile')[process.env.NODE_ENV];
let knex = require('knex')(db);
/**
* Loads fixture data. Expects fixture data to be exported by a file in the
* ./fixtures/ directory (e.g. ./fixtures/users.js).
/* jshint node:true */
process.binding('http_parser').HTTPParser = require('http-parser-js').HTTPParser;
var http = require('http');
var url = require('url');
var printf = require('util').format;
var Promise = require('bluebird');
var modemRequest = Promise.method(function(modemUrl) {
// $result = $sendgrid->send($email);
// var_dump($result);
// This is the dump of $result...
class SendGrid\Response#21 (4) {
public $code =>
int(200)
public $headers =>
class Guzzle\Http\Message\Header\HeaderCollection#52 (1) {
protected $headers =>
array(7) {