#Installing ngrok on OSX
- Download ngrok
- Unzip it to your Applications directory
- Create a symlink (instructions below)
Run the following two commands in Terminal to create the symlink.
# cd into your local bin directory
<html> | |
<head> | |
<style> | |
*{ | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0 | |
} | |
body { | |
color: #fff; |
<?php $coverimage = wp_get_attachment_url( get_post_thumbnail_id( $post->ID ) ); | |
// Evaluates if $coverimage is set | |
if (empty($coverimage)) { | |
$coverimage = 'http://placehold.it/350x150'; | |
} ?> |
#Installing ngrok on OSX
Run the following two commands in Terminal to create the symlink.
# cd into your local bin directory
/* GET home page. */ | |
app.get('/', function(req, res, next) { | |
connection.query('SELECT * FROM quotes', function(err, rows, fields) { | |
if (err) throw err; | |
res.render('index', { quotes: rows }); | |
}); | |
}); |
# ----------------------------------------------------------------- | |
# .gitignore for WordPress | |
# Bare Minimum Git | |
# | |
# NOTES: | |
# The purpose of gitignore files is to ensure that certain files not | |
# tracked by Git remain untracked. | |
# | |
# ----------------------------------------------------------------- |
font-family: -apple-system, BlinkMacSystemFont, | |
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", | |
"Fira Sans", "Droid Sans", "Helvetica Neue", | |
sans-serif; |
var action = process.argv[2]; | |
// We will then create a switch-case statement (if-then would also work). | |
// The switch-case will direct which function gets run. | |
switch(action){ | |
case 'total': | |
total(); | |
break; | |
case 'deposit': |
var Dud = function(gender, dudName, coolnessScale){ | |
this.gender = gender | |
this.dudName = dudName; | |
this.coolnessScale = coolnessScale; | |
this.dudeOrDudess = function(){ | |
if (this.gender == 'female'){ | |
console.log("I'm a dudess. Sup?"); | |
}else{ | |
console.log("I'm a dude. Are there any dudesses around?"); | |
} |