layout | title | date | categories |
---|---|---|---|
post |
Introduction to Gulp Boilerplate! |
2016-02-24 10:27:02 +1100 |
gulp jade stylus preprocessor workflow |
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 |
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
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
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
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
# =============== # | |
# Unity generated # | |
# =============== # | |
Temp/ | |
Obj/ | |
UnityGenerated/ | |
Library/ | |
Assets/AssetStoreTools* | |
Test_Data/ |
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
vagrant init unbuntu/xenial64 | |
cd #location/of/.box | |
vagrant box add ubuntu/xenial64 #nameof.box |
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
# CREATED BY BEN O'SULLIVAN / BIGBENO37 (GITHUB.COM/BIGBENO37) | |
# LICENSED UNDER CREATIVE COMMONS 'Attribution 4.0 International' LICENSE | |
# https://creativecommons.org/licenses/by/4.0/ | |
# FEEL FREE TO USE AND ADAPT THIS SCRIPT IN COMMERCIAL AND NON COMMERICAL PRODUCTS | |
# AS LONG AS PROPER ACCREDITATION IS GIVEN | |
# VARIABLES | |
echo -e "\x1B[01;95mWhat would you like to name your Laravel project?\x1B[0m" | |
read LARAVEL_PROJECT_NAME |
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
echo -e "\x1B[01;95mWhere was your Laravel project installed? (Use a full path such as /home/ubuntu/projects/blog/)\x1B[0m" | |
read PATH | |
cd $PATH | |
echo -e "\x1B[01;95mHas Laravel IDE Helper been installed? (Y/n)\x1B[0m" | |
read INSTALLED | |
if [ $INSTALLED = "n" ] || [ $INSTALLED = "N" ]; then | |
echo -e "\x1B[01;93mInstalling...\x1B[0m" | |
composer require barryvdh/laravel-ide-helper | |
echo -e "\x1B[01;93mAdd this to providers array in app.php in config\x1B[0m" | |
echo -e "\x1B[01;93mBarryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class\x1B[0m" |
OlderNewer