Skip to content

Instantly share code, notes, and snippets.

View actsasgeek's full-sized avatar

Stephyn Butcher actsasgeek

View GitHub Profile
@actsasgeek
actsasgeek / starter.md
Last active April 18, 2024 15:41
645_starter.md

EN605.645 Artificial Intelligence

Welcome!

This course requires knowledge of Python (the requirement is listed in the course description). If you do not know Python, you will not do well and the course will be harder than it already is.

Slack

We will be using Slack this semester for course communication/discussion. Please make sure you have Slack installed on your computer before the semester starts. You will be given a link for the course Slack workspace when the course starts.

@actsasgeek
actsasgeek / environment.yml
Last active December 28, 2023 20:02
645 environment file
name: en605645
channels:
- conda-forge
dependencies:
- python=3.11
- numpy
- scipy
- matplotlib
- seaborn
- jupyter
@actsasgeek
actsasgeek / environment.yml
Last active January 15, 2024 17:38
Anaconda environment for EN685.648
name: en685648
channels:
- conda-forge
dependencies:
- python=3.11
- numpy
- scipy
- matplotlib
- tabulate
- pandas
@actsasgeek
actsasgeek / starter.md
Last active February 12, 2024 12:55
EN685.648 Starter Pack

EN685.648 Data Science

This course requires knowledge of Python and SQL (the requirement is listed in the course description). If you do not know Python, you will not do well and the course will be that much harder.

Instructors

For the Fall 2023 Semester, there are three sections of Data Science being offered. There are different Primary/Secondary Instructors and Chat Platforms for each Primary Instructor:

Section Primary Secondary Chat Platform
@actsasgeek
actsasgeek / spiced_keymap.cson
Created January 5, 2017 17:47
experimenting with a mapping that isn't a direct copy of the existing protorepl key bindings.
'atom-text-editor.vim-mode-plus.normal-mode':
', l': 'proto-repl:toggle'
', L': 'proto-repl:toggle'
', y': 'proto-repl:remote-nrepl-connection'
', j': 'proto-repl:start-self-hosted-repl'
', e': 'proto-repl:exit-repl'
', k': 'proto-repl:clear-repl'
', S': 'proto-repl:toggle-auto-scroll'
', b': 'proto-repl:execute-block'
', B': 'proto-repl:execute-top-block'
@actsasgeek
actsasgeek / keymap.cson
Last active January 13, 2018 11:10
For the Atom Editor, using Proto REPL and vim-mode-plus together. This allows you to use `,` as a leader instead of `ctrl-alt-,`. Very simplistic.
'atom-text-editor.vim-mode-plus.normal-mode':
', l': 'proto-repl:toggle'
', L': 'proto-repl:toggle'
', y': 'proto-repl:remote-nrepl-connection'
', j': 'proto-repl:start-self-hosted-repl'
', e': 'proto-repl:exit-repl'
', k': 'proto-repl:clear-repl'
', S': 'proto-repl:toggle-auto-scroll'
', b': 'proto-repl:execute-block'
', B': 'proto-repl:execute-top-block'
@actsasgeek
actsasgeek / capstone.md
Created May 3, 2016 18:24
Examples of Capstone projects - AI 605.445

One student did a straight-forward text-based adventure, narrative:

Uh oh... Degi's parents have been captured!

Based on the features of this plane, ['setting', 'waxing', 'fall'], Degi will be dropped in map01
Degi needs to get to the portal shrine for E

Degi's path through the plane looks like the map below
(0 = starting point, X = a visited point)
@actsasgeek
actsasgeek / bar_chart.html
Created January 22, 2016 23:13
A slight transformation of http://bl.ocks.org/mbostock/3885304#index.html into a single page example with the data embedded.
<!DOCTYPE html>
<meta charset="utf-8">
<style>
#foo {
width: 1200px;
height: 400px;
}
.bar {
@actsasgeek
actsasgeek / bar_chart.clj
Last active January 24, 2016 21:59
An attempt to convert a d3 JavaScript chart to ClojureScript.
(def ^:export letter-data (clj->js [
{"letter" "A" "frequency" .08167}
{"letter" "B" "frequency" .01492}
{"letter" "C" "frequency" .02782}
{"letter" "D" "frequency" .04253}
{"letter" "E" "frequency" .12702}
{"letter" "F" "frequency" .02288}
{"letter" "G" "frequency" .02015}
{"letter" "H" "frequency" .06094}
{"letter" "I" "frequency" .06966}
@actsasgeek
actsasgeek / birthday.py
Created September 16, 2013 13:59
The Birthday Problem in Python.
from random import randint
from collections import defaultdict
def tally_k_birthdays( k):
counts = defaultdict( int)
for i in range( 0, k):
birthday = randint( 1, 365)
counts[ birthday] += 1
return counts