Skip to content

Instantly share code, notes, and snippets.

View aleccool213's full-sized avatar
🏠
Working from home

Alec Brunelle aleccool213

🏠
Working from home
View GitHub Profile
@aleccool213
aleccool213 / config.yml
Last active August 29, 2015 14:10
thin config file
---
chdir: /Users/"username-here"/"route-to-app-here"
environment: development
address: 0.0.0.0
port: 3000
timeout: 30
log: log/thin/thin.log
pid: tmp/thin/thin.pid
max_conns: 1024
max_persistent_conns: 512
@aleccool213
aleccool213 / CSC301 quick summary
Created December 8, 2014 22:19
CSC301 Exam notes
# CSC301 Exam notes
-------------------------------
## Java
When creating a class, we can check if arguments are null by calling setAttribute(*classCreationArgument*) on all of the arguments.
#### Checking for null arguments:
Our class creation function,
```
@aleccool213
aleccool213 / gist:fbf368fd6d3123db136d
Created January 12, 2015 03:42
Colin Baker's Television List
Smallville: ['3', '2', '4', '5']
Homeland: ['2', '1', '3']
Dexter: ['7', '8']
House of Cards: ['1', '2']
Breaking Bad: ['4', '5, Part 1', '5']
Boardwalk Empire: ['2']
South Park: ['4', '3', '2', '1', '8', '7', '6', '5', '9', '10', '12', '11', '13', '14', '16', '17']
An Idiot Abroad: ['2', '1', '3']
The IT Crowd: ['1', '2', '3', '4']
The Walking Dead: ['2', '3']
## CSC302 Notes
### Challenges in Software
* Software engineering is important because it is increasingly becoming apart of every system
* projects are either...
* Successful (37%)
* Canceled (21%)
* too late or over budget (42%)
@aleccool213
aleccool213 / csc309examnotes.md
Last active August 29, 2015 14:19
Some notes on the first few weeks of CSC309, plz contribute

CSC309 notes

Here are some notes for the course on things I thought were important to know for the exam. No substitute for reading the actual lecture notes though so please do that as well :D

HTTP Protocol

  • A very simple example of a GET request with a 301 (Moved Permenantly) reply from the server image
  • every device/computer has IP address, 4 #'s seperated by dots
  • DNS server holds the actual addresses and paths to how to get to the server
import json
import re
#global vars
#dictionary[key=title, value=seasons array]
titles = dict()
#file holding all of shows with corresponding shows watched
resultsComplete = open("/Users/alec/Github/colinproject/tweets/resultsComplete.txt", "w+")
@aleccool213
aleccool213 / test_refactoring.markdown
Last active August 29, 2015 14:22
Refactoring tests
@aleccool213
aleccool213 / export_repo_issues_to_csv.py
Created March 1, 2016 00:39 — forked from unbracketed/export_repo_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests

Keybase proof

I hereby claim:

  • I am aleccool213 on github.
  • I am aleccool21 (https://keybase.io/aleccool21) on keybase.
  • I have a public key whose fingerprint is CC4C 06E6 ACC3 42C1 BF87 6B87 C4FD 4BBC BB20 0FA5

To claim this, I am signing this object:

@aleccool213
aleccool213 / data.json
Created January 11, 2018 19:19
eg for use with sigma in a codepen
{
"nodes": [
{
"id": "n0",
"label": "A node",
"x": 0,
"y": 0,
"size": 3
},
{