Skip to content

Instantly share code, notes, and snippets.

View dannyvassallo's full-sized avatar

Dan Vassallo dannyvassallo

View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<style>
.my-portfolio{
@dannyvassallo
dannyvassallo / README.md
Last active December 29, 2015 16:10
Lazyload JS
<img src="http://directdevelopmentpr.com/wp-content/uploads/2015/12/blank.gif" data-src="http://directdevelopmentpr.com/wp-content/uploads/2015/09/Services-Timeline.gif" width="100%" height="auto" class="lazy" style="max-width: 1200px;">
<!-- https -->
<div class="tidal-embed" data-type="v" data-id="56799242"></div>
<script src="https://embed.tidal.com/tidal-embed.js"></script>
<!-- http -->
<div class="tidal-embed" data-type="v" data-id="56799242"></div>
<script src="http://embed.tidal.com/tidal-embed.js"></script>
@dannyvassallo
dannyvassallo / 20160216211105_create_images.rb
Created February 16, 2016 21:32
Use tinymce-rails & tinymce-rails-imageupload with carrierwave & fog
# db/migrate/filename.rb
# generate with >> rails g model image alt:string hint:string file:string
class CreateImages < ActiveRecord::Migration[5.0]
def change
create_table :images do |t|
t.string :alt
t.string :hint
t.string :file
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@dannyvassallo
dannyvassallo / geolocation.js
Created March 18, 2016 13:34
Gelocation for Greg
var lat,
lng;
$(document).ready(function(){
getLocation();
var mapOptions = {
center: new google.maps.LatLng(lat, lng),
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP
@dannyvassallo
dannyvassallo / mobile-config.js
Created March 19, 2016 14:56
Mobil config for meteor
App.accessRule('*');
@dannyvassallo
dannyvassallo / README.md
Last active April 26, 2016 17:38
Fix WP Database Errors from Corrupted Tables using Desktop Server from ServerPress on El Capitan

#Fix Corrupted Tables on WP using DesktopServer

####Get full permissions

$ cd /Applications/XAMPP/xamppfiles/var/mysql/<<DATABASE NAME>>/
$ chmod -R 777 .

####Fix each reportedly broken table (do this once for each broken table):

@dannyvassallo
dannyvassallo / gitignorenodemodules.md
Last active June 3, 2016 00:00
Because I keep reiterating this and it may help some students.

#Don't Add Your node_modules to git / github. ####Follow the instructions to not do this.

First and foremost you should be initializing NPM with npm init when you start a new node project. If you aren't doing this now, you need to start immediately.

Secondly, you should be installing your node packages for your project using npm install <package name> --save If you aren't doing this now, you need to start immediately.

Now -- Follow these steps to make git ignore your node_modules folder.