Skip to content

Instantly share code, notes, and snippets.

let events = [];
for (const calendar of calendars) {
console.log(calendar);
ical.fromURL(calendar, {}, (err, data) => {
for (var k in data) {
if (data.hasOwnProperty(k)) {
const event = data[k];
const eventStart = moment(event.start);
const now = moment();
const later = moment().add(1, 'days');
@nathanmsmith
nathanmsmith / eyyyy.py
Created November 9, 2017 01:29
174eyyyyyy
import numpy as np
np.set_printoptions(formatter={'float': lambda x: "{0:0.3f}".format(x)})
cam = np.matrix() # put cam matrix here
wcs = np.matrix([[3, 0, -2, 1],
[2, 0, -1, 5],
[1, -3, 2, -1],

Keybase proof

I hereby claim:

  • I am nathunsmitty on github.
  • I am nathunsmitty (https://keybase.io/nathunsmitty) on keybase.
  • I have a public key ASC3mtrjAPJuVCydkir_u64sfRA5J8--drVNjBPD1s-ecQo

To claim this, I am signing this object:

@nathanmsmith
nathanmsmith / layout.kbd.json
Last active January 6, 2019 23:43
Untitled Keyboard Layout
[
[
{
"f": 1,
"f2": 2,
"w": 0.675,
"h": 0.85
},
"\nEsc",
{
@nathanmsmith
nathanmsmith / ucla-map.svg
Created March 23, 2019 19:25
UCLA Map SVG
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nathanmsmith
nathanmsmith / .bash_profile
Last active October 9, 2020 05:12
seasnet lnxsrv bash profile
#!/usr/bin/env bash
# Useful for more up-to-date software
PATH=/usr/local/cs/bin:$PATH
# Stolen from Mathias Bynens: https://github.com/mathiasbynens/dotfiles
prompt_git() {
local s='';
local branchName='';

Keybase proof

I hereby claim:

  • I am nathanmsmith on github.
  • I am nathunsmitty (https://keybase.io/nathunsmitty) on keybase.
  • I have a public key ASCa-250tFPEd153lJePLUMjq6Gi7kwhcAgJrjcxvCMUUgo

To claim this, I am signing this object: