Pull Requests | Ordered Oldest to Newest
This file contains hidden or 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
FROM debian:latest | |
RUN apt-get update | |
RUN apt-get -y install iceweasel | |
ENV DISPLAY :0 | |
CMD iceweasel |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<link rel='stylesheet' type='text/css' href='style.css'> |
This file contains hidden or 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
#/usr/bin/python3.5 | |
import unittest | |
def add(x, y): | |
if x == y: | |
raise ValueError('X cannot equal Y because reasons') | |
else: | |
return x + y | |
class TestyTesterson(unittest.TestCase): |
This file contains hidden or 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
venv/ |
This file contains hidden or 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
""" | |
A simple example of calling commands with a dict instead of an if/elif/else | |
chain. | |
""" | |
import sys # used for argv, not really imprtant for the example | |
def main(): | |
# Create a dictionary of commands and their corresponding function | |
# This function can be called by using the command as a keyword when | |
# accessing the dictionary. |
This file contains hidden or 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
// Build instructions: | |
// $ go build main.go | |
// | |
// Usage instructions: | |
// $ ./main --method=GET --url=http://example.com | |
// $ ./main --method=POST --url=http://api.example.com/v#/thing/ --content='{"foo": "bar", "baz": True}' | |
package main | |
import ( | |
"bytes" |
This file contains hidden or 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
.gitignore | |
.venv/ | |
venv/ | |
index.html |
This file contains hidden or 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 block syncs up my bash history file in my tmux sessons. | |
# avoid duplicates.. | |
export HISTCONTROL=ignoredups:erasedups | |
# append history entries.. | |
shopt -s histappend | |
# After each command, save and reload history | |
export PROMPT_COMMAND="history -a; history -c; history -r; $@" |