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
% resume.tex | |
% | |
% Layout (c) 2007-2011 Jeremy B. R. Edberg <[email protected]> http://www.jedberg.net | |
% | |
%%%%%%%%%%%% | |
% Variables, fill these in: | |
\newcommand{\resumeauthor}{Your Full Name} | |
\newcommand{\resumeemail}{[email protected]} | |
\newcommand{\resumephone}{Mobile: 812-555-1234} |
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
set nocompatible | |
set backspace=indent,eol,start | |
filetype plugin indent on | |
set history=50 | |
set ruler | |
set number | |
set showcmd | |
set incsearch |
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
$ echo "This is a secret file" | openssl enc -aes-256-cbc > secret.txt |
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
!/usr/bin/env ruby | |
# | |
class GeoDist | |
def self.haversine(lat1, lon1, lat2, lon2) | |
r = 6371 ## km | |
dLat = self.toRadians(lat2-lat1) | |
dLon = self.toRadians(lon2-lon1) | |
lat1 = self.toRadians(lat1) | |
lat2 = self.toRadians(lat2) |
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
require 'rubygems' | |
require 'httparty' | |
require 'io/console' | |
class GithubApi | |
include HTTParty | |
base_uri 'https://api.github.com' | |
def initialize(username, password) | |
@auth = {:username => username, :password => password} |
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
require 'json' | |
require 'csv' | |
json = { 'type' => 'FeatureCollection', | |
'crs' => { 'type' => 'name', | |
'properties' => { 'name' => 'urn:ogc:def:crs:OGC:1.3:CRS84' } }, | |
'features' => [] | |
} | |
CSV.open('stops.txt', 'r') do |csv| |
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
\documentclass[12pt]{letter} | |
\usepackage{fullpage} %1in margins on every page | |
\usepackage{parskip} %no paragraph indents, put a space inbetween instead | |
\begin{document} | |
\pagestyle{empty} | |
\centerline{\Large \bf MEMO} | |
\bigskip | |
\begin{description} | |
\setlength{\itemsep}{0pt} |
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
\documentclass[12pt]{letter} | |
\usepackage{fullpage} %1in margins on every page | |
\longindentation=0pt | |
\renewcommand*{\opening}[1]{\thispagestyle{empty}% | |
{\raggedright \fromaddress \\*[2\parskip]% | |
\today \\*[2\parskip]% | |
\toname \\ \toaddress \par}% | |
\vspace{2\parskip}% |
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
#!/usr/bin/env ruby -w | |
# brew-services(1) - Easily start and stop formulas via launchctl | |
# =============================================================== | |
# | |
# ## SYNOPSIS | |
# | |
# [<sudo>] `brew services` `list`<br> | |
# [<sudo>] `brew services` `restart` <formula><br> | |
# [<sudo>] `brew services` `start` <formula> [<plist>]<br> |
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
CREATE TABLE spells ( | |
name varchar(255) unique not null, | |
school varchar(255), | |
subschool varchar(255), | |
descriptor varchar(255), | |
spell_level varchar(255), | |
casting_time varchar(255), | |
components varchar(255), | |
costly_components boolean, | |
range varchar(255), |
OlderNewer