This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// Sup, sorry about missing this weeks lesson. As I explained in the email, I came up with a | |
// hella good idea, and had to nuke all my hard drives. Rearrange data. Basically, If I get inspired | |
// you can knock on my door and I might not notice. | |
// So for this week. | |
/* <- This symbol starts a comment. | |
That means that if you compile, and run your program with: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) | |
/etc/profile | |
2) | |
~/.bash_profile | |
3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hex_dump = """ | |
0000000 eb 58 90 42 53 44 20 20 34 2e 34 00 02 10 20 00 | |
0000010 02 00 00 00 00 f0 00 00 20 00 ff 00 00 00 00 00 | |
0000020 f4 53 cd 01 9d 39 00 00 00 00 00 00 02 00 00 00 | |
0000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 | |
0000040 00 00 29 02 14 f9 7e 47 43 47 4c 49 4e 55 58 20 | |
0000050 20 20 46 41 54 33 32 20 20 20 fa 31 c0 8e d0 bc | |
0000060 00 7c fb 8e d8 e8 00 00 5e 83 c6 19 bb 07 00 fc | |
0000070 ac 84 c0 74 06 b4 0e cd 10 eb f5 30 e4 cd 16 cd | |
0000080 19 0d 0a 4e 6f 6e 2d 73 79 73 74 65 6d 20 64 69 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## This file will be printit.py | |
#!/usr/bin/env/python3 | |
def printit(string): | |
print(string) | |
## This file will be in the same directory and called import_printit.py . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## flask up | |
## create virtualenv virtual environment, install flask, and cp boilerplate | |
## into virtual environment. | |
## | |
## run: ~$ . flaskup <dirname> | |
if [[ -z $1 ]]; | |
then |