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
#!/bin/sh | |
DIRECTORY="/Users/dallen/Sites/GitHub/$1" | |
if [ -d "$DIRECTORY" ]; then | |
cd "$DIRECTORY" && vagrant up | |
else | |
echo "Directory does not exist." | |
fi |
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
#!/bin/sh | |
if ! brew_loc="$(type -p "brew")" || [ -z "brew_loc" ]; then | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
else | |
printf "\e[0;32mBrew\e[0m already installed.\n" | |
fi | |
printf "Updating \e[0;32mBrew\e[0m...\n\n" |
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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="cloud" | |
alias zshconfig="subl ~/.zshrc" | |
alias ohmyzsh="subl ~/.oh-my-zsh" | |
alias mk=popd | |
alias ls="pwd; ls --color" |
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
gulp.task('watch', function() { | |
server.listen(35729, function (err) { | |
if (err) { | |
return console.log(err) | |
}; | |
gulp.watch('assets/sass/*.scss', ['styles']); | |
gulp.watch('assets/js/*.js', ['scripts']); | |
gulp.watch('assets/source/img/*', ['images']); |
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
<?php | |
$record = array( | |
'First Name' => 'Donald', | |
'Last Name' => 'Allen', | |
'Email' => '[email protected]', | |
'Phone Number' => '(780) 429-9993', | |
'Organization New' => 'Top Draw', | |
'Title' => 'Senior Web Developer', | |
'City' => 'Edmonton', |
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
<div class="chart" id="chart1"></div> | |
[ip4]{ | |
"template": ip4.barChart(), // Can be changed to ip4.pieChart(), ip4.lineChart() | |
"parentElement": "#chart1", | |
"data": { | |
"reader": ip4.dataReader() | |
.data([ | |
<!— INSERT ROWS HERE, REPLACING THIS LINE —> |
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
server { | |
listen 80; | |
root /var/www/mywebsite.ca/public; | |
index index.php index.html index.htm; | |
server_name www.mywebsite.ca mywebsite.ca; | |
location ~ \.php$ { | |
fastcgi_keep_conn on; |
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
<?php | |
add_filter('body_class', function($classes) { | |
global $wpdb, $post; | |
if (is_page()) { | |
if ($post->post_parent) { | |
$parent = end(get_post_ancestors($current_page_id)); | |
} else { | |
$parent = $post->ID; | |
} | |
$post_data = get_post($parent, ARRAY_A); |
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
<?php | |
add_action('wp_enqueue_scripts', function() { | |
if ( ! is_admin()) { | |
// Get rid of the default jQuery | |
wp_deregister_script('jquery'); | |
// For non-mobile devices | |
if ( ! $wp_is_mobile()) { | |
wp_register_script('jquery-js', JS_PUBLIC_URI . 'vendor/jquery/jquery.min.js', array(), '', false); |
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
// From this | |
section.divisions:not(.hero) { | |
padding:3em 3em; | |
background-color:$greyLighter; | |
text-align:center; | |
a { | |
display:block; | |
color:$greyDark; | |
font-size:em(14); |