Skip to content

Instantly share code, notes, and snippets.

@dellsystem
dellsystem / authorized_keys
Created July 9, 2024 17:39
intelsystem ssh key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDNeAx2eakPAIbSEXM5WHm9lPW2O6j6g1OtQpMqhu3uJq6lOvFFmkXFugACc/pD4BATp9jc53Vy9d0gBicPwkb6afr6zZ5k66Qaz+g9W2JqrHgLzbxJyzRS6EVPebjiDRvW1rGRPE4XFTmv5ZrdFGqIpWpRnnU9B5vLuRe+WWkpNeEWxB32nQ7C7YlHLJvK29CiNMsA82pBBmOY0oJKgg74dkCRnUNg+fyeBc/pyUkXruYQNekybYU691v+Sb6/3TQH2psy8gQzsqsEQlq6+ICO/1dysFVYy22rM4TGBLPJ8KD5bMpd/O99/U0RlUbi8fZVSbVl2bmSuwMfAxmH33I7EXZ5IZQEwICZiGeR8nsusg69stISg+wwJ2d9HjzLfnUPGJU27loc2wLOcO52G2XWXZHMNRPYFqiyOMwL5Y57nCdvaa9xBmUKZgYSVOfWFI1wxqrdQMO6UzbJTUx94aA9iwTGLEfzdTbWdFGNBmaFZULXFw467QirmHSKp8I7gz0= dellsystem@intelsystem
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$.