Skip to content

Instantly share code, notes, and snippets.

View dannyvassallo's full-sized avatar

Dan Vassallo dannyvassallo

View GitHub Profile
@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 / mobile-config.js
Created March 19, 2016 14:56
Mobil config for meteor
App.accessRule('*');
@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
# 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 / 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
<!-- 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>
<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;">
@dannyvassallo
dannyvassallo / README.md
Last active December 29, 2015 16:10
Lazyload JS
<!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 / Default.sublime-theme
Created November 20, 2015 20:02
Custom sublime text 3 sidebar.
[
{
"class": "sidebar_container",
"layer0.tint": [60, 60, 60],
"layer0.opacity": 1.0,
"layer0.draw_center": false,
"layer0.inner_margin": [0, 0, 1, 0],
"content_margin": [0, 0, 1, 0]
},
{