Skip to content

Instantly share code, notes, and snippets.

import argparse
import os
import subprocess
import sys
from wand.image import Color, Image, COMPOSITE_OPERATORS
from wand.drawing import Drawing
from wand.display import display
@dellsystem
dellsystem / distance.py
Created May 18, 2014 18:51
Requires two python dependencies: `beautifulsoup4` and `requests` (installable through pip)
import sys
from bs4 import BeautifulSoup
import requests
url = ("http://www.webflyer.com/travel/mileage_calculator/getmileage.php?city="
"%s&city=%s&city=&city=&city=&city=&bonus=0&bonus_use_min=0&class_bonus"
"=0&class_bonus_use_min=0&promo_bonus=0&promo_bonus_use_min=0&min=0&min"
"_type=m&ticket_price=")
@dellsystem
dellsystem / guess.py
Created May 7, 2014 15:16
Trying to guess the Osheaga artists using brute force
import json
import random
import requests
import time
names = json.load(open('names.json'))
last_id = int(open('id').read().strip())
url = 'http://www.osheaga.com/post-score.php'
headers = {
public class Question1{
public static void main(String[]args){
String[] shouldBeTrue = {
"89012",
"xyZabc",
"123",
"DcbaZ",
};
String[] shouldBeFalse = {
"09283dfsdfD",
@dellsystem
dellsystem / style.css
Created February 19, 2013 18:58
Because mixing HTTP and HTTPS content doesn't work in Chrome.
html,body{margin:0;padding:0;}
h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,cite,code,del,dfn,em,img,q,s,samp,small,strike,strong,sub,sup,tt,var,dd,dl,dt,li,ol,ul,fieldset,form,label,legend,button,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;font-weight:normal;font-style:normal;font-size:100%;line-height:1;font-family:inherit;}
table{border-collapse:collapse;border-spacing:0;}
ol,ul{list-style:none;}
q:before,q:after,blockquote:before,blockquote:after{content:"";}
html{overflow-y:scroll;font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;}
a:focus{outline:thin dotted;}
a:hover,a:active{outline:0;}
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block;}
audio,canvas,video{display:inline-block;*display:inline;*zoom:1;}
@dellsystem
dellsystem / content.md
Last active December 10, 2015 22:48
MATH 325 lecture notes for Thursday, January 10. What is wikinotes?

Notes for lecture #2. In this lecture: some definitions and notation, and introduction to solving first-order linear ODEs.

Under construction.

[TOC]

Definitions and notations

Basic ODE notation

@dellsystem
dellsystem / content.md
Last active December 10, 2015 22:29
MATH 236 lecture notes for Thursday, January 10. RIP wikinotes

Lecture notes from lecture #3 of [[MATH 236]]. Material covered: some properties of vector spaces, subspaces, sums and direct sums.

[TOC]

Properties of vector spaces

  1. A vector space $V$ has a unique additive identity element, the zero vector ($\vec 0 \in V$).
  2. Any element in $V$ has a unique additive inverse.
  3. $0v = 0$ for any $v \in V$.
  4. $a \vec 0 = \vec 0$ for any $a \in \mathbb F$.
@dellsystem
dellsystem / content.md
Last active December 10, 2015 20:08
MATH 325 lecture notes for Tuesday, January 8. Why is the wikinotes server not up yet

Lecture notes from the first lecture of [[MATH 325]], taught by Anthony Humphries. In this lecture: information on the course (grading scheme, expectations, etc) and an introduction to ODEs, complete with a solved example.

Under construction.

[TOC]

Course information

Announcements and postings

@dellsystem
dellsystem / content.md
Created January 8, 2013 15:25
MATH 236 lecture notes for Tuesday, January 8. The wikinotes server is still down.

Lecture notes from lecture #2 of [[MATH 236]]. In this lecture, we got a brief introduction to complex numbers, and were given the definition of a vector space (along with some examples).

[TOC]

Complex numbers

$$\mathbb C = {a + bi \mid a, b \in \mathbb R, i^2 = -1 }$$

Note that $\mathbb R \subset \mathbb C$.

@dellsystem
dellsystem / content.md
Created January 7, 2013 14:50
MATH 236 lecture notes for Monday, January 7. While the wikinotes server is down.

Lecture notes from the first lecture of [[MATH 236]], taught by Bulent Tosun. In this lecture, we took a short preliminary quiz, and went over some of the motivation behind linear algebra.

Link to syllabus (PDF)

[TOC]

Quiz

The quiz lasted approximately 17 minutes. There were 6 true/false questions on basic linear algebra material, which are summarised below: