#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
/* 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 }); | |
}); | |
}); |
#Installing ngrok on OSX
Run the following two commands in Terminal to create the symlink.
# cd into your local bin directory
["✌","😂","😝","😁","😱","👉","🙌","🍻","🔥","🌈","☀","🎈","🌹","💄","🎀","⚽","🎾","🏁","😡","👿","🐻","🐶","🐬","🐟","🍀","👀","🚗","🍎","💝","💙","👌","❤","😍","😉","😓","😳","💪","💩","🍸","🔑","💖","🌟","🎉","🌺","🎶","👠","🏈","⚾","🏆","👽","💀","🐵","🐮","🐩","🐎","💣","👃","👂","🍓","💘","💜","👊","💋","😘","😜","😵","🙏","👋","🚽","💃","💎","🚀","🌙","🎁","⛄","🌊","⛵","🏀","🎱","💰","👶","👸","🐰","🐷","🐍","🐫","🔫","👄","🚲","🍉","💛","💚"] |
# ----------------------------------------------------------------- | |
# .gitignore for WordPress | |
# Bare Minimum Git | |
# | |
# NOTES: | |
# The purpose of gitignore files is to ensure that certain files not | |
# tracked by Git remain untracked. | |
# | |
# ----------------------------------------------------------------- |
<?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'; | |
} ?> |
<html> | |
<head> | |
<style> | |
*{ | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0 | |
} | |
body { | |
color: #fff; |
window.onload = function(){ | |
var aboutdata = null; | |
$.get( "/about-us/?ajax=true", function( data ) { | |
aboutdata = data; | |
$( "#menu-item-23" ).click(function() { | |
event.preventDefault(); | |
$( "body" ).html(aboutdata); | |
}); |