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
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) |
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
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! |
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
npm prune |
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
% 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\\ |
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
sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions |
NewerOlder