Skip to content

Instantly share code, notes, and snippets.

View anthonydelgado's full-sized avatar

Anthony Delgado anthonydelgado

View GitHub Profile
<html>
<head>
<style>
*{
box-sizing: border-box;
margin: 0;
padding: 0
}
body {
color: #fff;
@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
<?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';
} ?>
@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
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}
/* 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 });
});
});
@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.
#
# -----------------------------------------------------------------
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?");
}