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 johndoe@example.com
@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);
});