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
server { | |
listen 80; | |
server_name qntm.net; | |
location / { | |
root /srv/http/qntm; | |
index index.html index.htm; | |
} | |
error_page 404 /404/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
## Vim | |
.*.sw[a-z] | |
*.un~ | |
Session.vim | |
## OS X | |
.DS_Store | |
# Thumbnails | |
._* |
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
# zsh theme | |
# created by Sam Jones 04/08/2012 | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[red]%}|%{$fg[white]%}[" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}]" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" ↯" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
PROMPT='%{$fg[red]%}[%1~]%{$reset_color%}%{$reset_color%}%{$fg[white]%}$(git_prompt_info) « $reset_color%}' |
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
CONNECTION='wireless' | |
DESCRIPTION='BTHub' | |
INTERFACE='wlan0' | |
SECURITY='wpa' | |
ESSID='BTHub3-QJQ3' | |
KEY='*' | |
IP='static' | |
ADDR='192.168.1.32' | |
GATEWAY='192.168.1.254' | |
DNS=('192.168.1.254') |
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
(defgroup snippt-paste nil | |
"Interface to s.drk.sc" | |
:tag "snippt" | |
:group 'applications) | |
(defcustom *snippt-timeout* 10 | |
"The time to wait for a request." | |
:type 'integer :group 'pastie) |
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
module Main where | |
import System.IO | |
-- Extended exercise: supermarket billing | |
-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
-- Types of names, prices (pence) and bar-codes. | |
type Name = String |
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
# sys module lets you do sys.exit() - quit a program early | |
# random module lets you use the random functions | |
import random | |
import sys | |
# just to keep things simple and help you focus on the if...elif...else structure | |
# if you run within IDLE don't worry about the traceback on sys.exit() - won't happen when you run | |
# through DOS | |
# procedures go here | |
def gameoverearly(): |
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
; Executable name : EATSYSCALL | |
; Version : 1.0 | |
; Created date : 06/02/2013 | |
; Last update : 06/02/2013 | |
; Author : Sam Jones | |
; Description : A simple assembly app for Linux, using NASM 2.05, | |
; demonstrating the use of Linux INT 80H syscalls | |
; to display text. | |
; | |
; Build using these commands: |
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
#!/bin/bash | |
HOST="[redacted]" | |
SSL=false | |
if test -z "$1"; then | |
echo "Incorrect usage for $0" | |
exit 1 | |
fi |
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
-- Filename : middleNumber.hs | |
-- Version : 1.0 | |
-- Created on : 10/02/2013 | |
-- Last update : 10/02/2013 | |
-- Author : Sam Jones | |
-- Description : Chapter 6, designing programs in Haskell. | |
-- re-using the previosuly written maxThree | |
-- function to figure out and design a way to | |
-- find the middle value when given 3 integers. | |
-- |
OlderNewer