Skip to content

Instantly share code, notes, and snippets.

View sambgordon's full-sized avatar

samcozmid sambgordon

View GitHub Profile
@sambgordon
sambgordon / docker_wordpress.md
Created March 27, 2019 03:19 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@sambgordon
sambgordon / fractrees.js
Created March 3, 2017 20:22
fractal trees app js available as gist
/*The following vars are used for different parameters of generated tree and can searched easily:
mainBranch = the main generated branch
subBranches = the sub branches that are generated "infinitely"
travel = "distance" the branches will travel
branchWidth = Width of the stroke generated branches - keep in mind they
get exponentially thinner and thinner as recursion continues
startX, StartY, endX, endY = Defines path starting and ending values
length = length of each new tree relative to window size
angle = angle of path of each new tree
@sambgordon
sambgordon / script.js
Last active June 15, 2018 15:36
Use WP rev slider on non-wordpress site
//Revolution Slider parameters
//With jquery-dependent rs-plugin in place, calls necessary elements to run this awesome plugin on whatever site you want.
jQuery(document).ready(function() {
jQuery('.tp-banner').show().revolution(
{
dottedOverlay:"none",
delay:14000,
startwidth:1170,
startheight:720,