Skip to content

Instantly share code, notes, and snippets.

View battis's full-sized avatar

Seth Battis battis

View GitHub Profile
@battis
battis / input_hack.ipynb.json
Last active December 16, 2015 07:39
IPython Notebook Input Hack
{
"metadata": {
"name": "input_hack"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "CS1 Examples"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Python Challenge (Sample Solutions)"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@battis
battis / resources-menu.js
Last active December 17, 2015 03:39
A bit of Javascript to add an additional hierarchical menu to the main Canvas navigation menu. Current updates to this project are taking place in this fork of our repo: https://github.com/smtech/canvas/tree/dev-resources-menu
// define your menu here
var resources = {
// menu title
// can also have a url property, so clicking the menu title sends you somewhere
// can also have a target property, so clicking the menu title opens in a specific frame/window/tab
title: 'Resources',
// an array of columns to display (don't go overboard here!)
columns: [
{
// columns can be divided into titled sections
{
"metadata": {
"name": "AP Chem Collaboration"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Balanced Equation"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Calculate Masses"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Parse Molecule"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Chemical Equation Balancer"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@battis
battis / discussion-permalinks.js
Created June 14, 2013 01:58
A bit of Javascript to expose permalinks in Canvas' discussions and announcements (works in -- at least -- Chrome and Safari). Current updates to this are taking place in this fork of our main repo: https://github.com/smtech/canvas/tree/dev-discussion-permalinks