Skip to content

Instantly share code, notes, and snippets.

samcozmid sambgordon

Block or report user

Report or block sambgordon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sambgordon
sambgordon / docker_wordpress.md
Created Mar 27, 2019 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin
View docker_wordpress.md

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 Mar 3, 2017
fractal trees app js available as gist
View fractrees.js
/*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 Jun 15, 2018
Use WP rev slider on non-wordpress site
View script.js
//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,
You can’t perform that action at this time.