Skip to content

Instantly share code, notes, and snippets.

View anthonydelgado's full-sized avatar

Anthony Delgado anthonydelgado

View GitHub Profile
/* 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 });
});
});
if (user)
ul#slide-out.side-nav.hide-on-med-and-down.z-depth-0.grey.lighten-5(style='transform: translateX(0px); ')
li.light-blue.darken-3
.userView
//img.background(src='images/office.jpg')
a(href='#!user')
img.circle(src='#{grav}')
a(href='#!name')
span.white-text.name Email: #{user.username}
@anthonydelgado
anthonydelgado / ngrok-installation.md
Created November 6, 2016 02:25 — forked from wosephjeber/ngrok-installation.md
Installing ngrok on Mac

#Installing ngrok on OSX

  1. Download ngrok
  2. Unzip it to your Applications directory
  3. Create a symlink (instructions below)

Creating a symlink to ngrok

Run the following two commands in Terminal to create the symlink.

# cd into your local bin directory
["โœŒ","๐Ÿ˜‚","๐Ÿ˜","๐Ÿ˜","๐Ÿ˜ฑ","๐Ÿ‘‰","๐Ÿ™Œ","๐Ÿป","๐Ÿ”ฅ","๐ŸŒˆ","โ˜€","๐ŸŽˆ","๐ŸŒน","๐Ÿ’„","๐ŸŽ€","โšฝ","๐ŸŽพ","๐Ÿ","๐Ÿ˜ก","๐Ÿ‘ฟ","๐Ÿป","๐Ÿถ","๐Ÿฌ","๐ŸŸ","๐Ÿ€","๐Ÿ‘€","๐Ÿš—","๐ŸŽ","๐Ÿ’","๐Ÿ’™","๐Ÿ‘Œ","โค","๐Ÿ˜","๐Ÿ˜‰","๐Ÿ˜“","๐Ÿ˜ณ","๐Ÿ’ช","๐Ÿ’ฉ","๐Ÿธ","๐Ÿ”‘","๐Ÿ’–","๐ŸŒŸ","๐ŸŽ‰","๐ŸŒบ","๐ŸŽถ","๐Ÿ‘ ","๐Ÿˆ","โšพ","๐Ÿ†","๐Ÿ‘ฝ","๐Ÿ’€","๐Ÿต","๐Ÿฎ","๐Ÿฉ","๐ŸŽ","๐Ÿ’ฃ","๐Ÿ‘ƒ","๐Ÿ‘‚","๐Ÿ“","๐Ÿ’˜","๐Ÿ’œ","๐Ÿ‘Š","๐Ÿ’‹","๐Ÿ˜˜","๐Ÿ˜œ","๐Ÿ˜ต","๐Ÿ™","๐Ÿ‘‹","๐Ÿšฝ","๐Ÿ’ƒ","๐Ÿ’Ž","๐Ÿš€","๐ŸŒ™","๐ŸŽ","โ›„","๐ŸŒŠ","โ›ต","๐Ÿ€","๐ŸŽฑ","๐Ÿ’ฐ","๐Ÿ‘ถ","๐Ÿ‘ธ","๐Ÿฐ","๐Ÿท","๐Ÿ","๐Ÿซ","๐Ÿ”ซ","๐Ÿ‘„","๐Ÿšฒ","๐Ÿ‰","๐Ÿ’›","๐Ÿ’š"]
@anthonydelgado
anthonydelgado / fix-unrecognized-author
Created September 9, 2016 23:14
set up the right name and email for your git commits made via ssh key
git config --global user.name "John Doe"
git config --global user.email [email protected]
@anthonydelgado
anthonydelgado / .gitignore
Last active December 26, 2016 23:05
.gitignore for WordPress
# -----------------------------------------------------------------
# .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;
@anthonydelgado
anthonydelgado / ajax.js
Last active April 23, 2019 07:47
load page with ajax
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);
});