Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Alec Brunelle aleccool213

🏠
Working from home
View GitHub Profile
@aleccool213
aleccool213 / config.yml
Last active Aug 29, 2015
thin config file
View config.yml
---
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
View CSC301 quick summary
# 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 Jan 12, 2015
Colin Baker's Television List
View gist:fbf368fd6d3123db136d
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']
View CSC302 notes
## 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 Aug 29, 2015
Some notes on the first few weeks of CSC309, plz contribute
View csc309examnotes.md

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
View tweet_scanner.py
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+")
View test_refactoring.markdown
@aleccool213
aleccool213 / export_repo_issues_to_csv.py
Created Mar 1, 2016 — forked from unbracketed/export_repo_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
View export_repo_issues_to_csv.py
"""
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
View keybase.md

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 Jan 11, 2018
eg for use with sigma in a codepen
View data.json
{
"nodes": [
{
"id": "n0",
"label": "A node",
"x": 0,
"y": 0,
"size": 3
},
{