Skip to content

Instantly share code, notes, and snippets.

View sekjal's full-sized avatar

Ian Walls sekjal

  • Massachusetts
View GitHub Profile
@sekjal
sekjal / handler.py
Created March 19, 2021 13:18
Rebuild FOLIO Instance from MARC
import requests
import json
import uuid
from datetime import datetime, timedelta
import os
from folioclient.FolioClient import FolioClient
def handle(event, context):
if event.method != 'POST':
return {
@sekjal
sekjal / D3 Forcegraph with link lookup
Created July 19, 2013 15:42
The purpose of this script is to provide an easy way to create a force directed graph in D3.js without having to know ahead of time the index of the nodes in the Nodes array. Instead of providing a list of Links with the array index of source and target, each node should have a unique name (ID), and each link should reference that. Links to unsu…
@sekjal
sekjal / gist:5999917
Last active December 19, 2015 18:38
Code for posting temperatures to Thingspeak (http://thingspeak.com/channels/6392). Basis for expandable module package?
import sys, getopt
import requests
# set to 1 to print temps to STDOUT instead of posting
debug = sys.argv[0]
thingspeak_api_key = '04SOECFW1HNRWSUI'
openweathermapcityid= '4951357'
values = { 'key' : thingspeak_api_key }