Skip to content

Instantly share code, notes, and snippets.

@bigbeno37
bigbeno37 / Palindrome.py
Created December 17, 2015 06:16
First time using TDD
class Palindrome(object):
def is_palindrome(self, palindrome):
if not isinstance(palindrome, str):
return False
# Define all variables
lower_case_palindrome = palindrome.lower().replace(' ', '').replace(',', '').replace('.', '')
reversed_palindrome = self.reverse_palindrome(lower_case_palindrome)
jekyll serve
rake post title="the title you want"
rake page name="about" # creates domain.com/about, which is actually domain.com/about/index.html!
@bigbeno37
bigbeno37 / cmd.sh
Created September 24, 2015 05:09
Remove node_modules
npm prune
% Example LaTeX document for GP111 - note % sign indicates a comment
\documentstyle[11pt]{article}
% Default margins are too wide all the way around. I reset them here
\setlength{\topmargin}{-.5in}
\setlength{\textheight}{9in}
\setlength{\oddsidemargin}{.125in}
\setlength{\textwidth}{6.25in}
\begin{document}
\title{LaTeX Typesetting By Example}
\author{Phil Farrell\\
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions