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 May 10, 2025 19:48
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 more challenging than it is meant to be.

Introductory Video

The course requires a specific programming style. That style is introduced in the following programming video:

@actsasgeek
actsasgeek / environment.yml
Last active May 10, 2025 19:45
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 May 20, 2025 12:29
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.

Infrastructure

  1. You are very strongly encouraged to use a computer upon which you have administrator/superuser privileges. I cannot help you with problems associated with the installation of software and libraries.
  2. You are encouraged to use "Unix"-style operating system (MacOS or Linux flavor) either directly or in a virual environment (Docker or VirtualBox). It's not required but you should be multi-hosted when it comes to OSes and the examples of command line utilities will be in 'Nix. This is not necessary to excel in the class but it is helpful. Many platforms are built on Linux and you should learn to use it.
  3. Ideally, you should have your environment up and running before the semester starts but no later than the 2nd day of class (that first Friday). There is a test a
@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