Skip to content

Instantly share code, notes, and snippets.

View kevana's full-sized avatar

Kevan Ahlquist kevana

View GitHub Profile
@kevana
kevana / sudokuSolver.scm
Created March 27, 2014 04:17
A throwback from my first semester in college.
(#%require racket/date)
;KEVAN AHLQUIST
;first test list
(define test '((9 . 3)(4 . 5)
(3 . 10)(2 . 13)(1 . 14)(9 . 18)
(1 . 20)(6 . 22)(9 . 24)
(6 . 28)(2 . 30)(9 . 34)(3 . 35)
(7 . 37)(9 . 41)(8 . 44)
(1 . 46)(4 . 48)(6 . 52)(7 . 53)
@kevana
kevana / bot.py
Created March 24, 2014 08:54
A quick and dirty script that monitors reddit's newest comments and searches for a particular substring in each comment.
# New comment monitor for reddit
#
# Copyright (C) 2014 Kevan Ahlquist
#
import requests
import json
import pprint
from time import sleep
@kevana
kevana / MagDec.py
Last active September 28, 2023 15:53
Script to retrieve Magnetic declination data from www.ngdc.noaa.gov. Retrieves specified latitude and longitude ranges (CONUS by default) and stores them in a cfg style text file
#
# Script to retrieve magnetic declination data from www.ngdc.noaa.gov
# Retrieves specified latitude and longitude ranges (CONUS by default)
# and stores them in a cfg style text file
#
# Usage: Run script with no arguments, it will output declination.cfg
# in the current directory
#
# Tested with Python 3.3.1
#