#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); | |
| }); |