Skip to content

Instantly share code, notes, and snippets.

@kharysharpe
kharysharpe / Resize.php
Last active August 29, 2015 13:59 — forked from RStankov/Resize.php
<?php
/*
Original version:
written by Jarrod Oberto
taken from http://net.tutsplus.com/tutorials/php/image-resizing-made-easy-with-php/
Modified From:
@kharysharpe
kharysharpe / copydb.php
Last active March 20, 2023 08:48
Copy a table from one MYSQL database server to another database another
<?php
/**
*
* Code was adapted from SitePoint
* http://www.sitepoint.com/forums/showthread.php?697857-Copy-mysql-table-from-one-server-to-another-through-php&s=b5b25e09ff44749d2e49e0d7c1640fd8&p=4680578&viewfull=1#post4680578
*
*/
// Prevent script from timing out
set_time_limit(0);
@kharysharpe
kharysharpe / create-cache-manifest.sh
Created May 12, 2014 02:15
Create a cache manifest from the commandline (for HTML5 offline)
echo "CACHE MANIFEST" > cache.manifest; find . -type f | sed "s#^\./##" | grep -vi "ds_store" >> cache.manifest
@kharysharpe
kharysharpe / fetch.MD
Created April 5, 2016 19:14
Laravel Fetch

Illuminate\Database\Eloquent\Builder


    /**
     * Fetch the row from the result set
     *
@kharysharpe
kharysharpe / solver.MD
Last active August 29, 2016 13:29
HOA Math - Solves interconnected expressions

Solves a series of related expressions

a = 1

b = a + 1

c = b * 2

d = a + b

@kharysharpe
kharysharpe / Example.MD
Created August 30, 2016 00:07
Open Source Proposal Template - Adapted from Zend Framework

Adopted from Zend Framework

Open Source Project Proposal

Proposed Component Name

Zend_Config

@kharysharpe
kharysharpe / PHPVAR.md
Last active May 22, 2021 22:06
PHP Variables
@kharysharpe
kharysharpe / machine_setup.sh
Last active January 21, 2020 13:55
Developer Machine setup
# sh -c "$(curl -fsSL https://gist.githubusercontent.com/kharysharpe/79c714d36960d54912027ad006ad9e16/raw/b8ef09c1238b53f09e37da9088f6637122850132/machine_setup.sh"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew cask
brew tap homebrew/php
brew update && brew upgrade && brew doctor
brew install git git-flow node composer
composer global require "squizlabs/php_codesniffer=*"
composer global require phpmd/phpmd
@kharysharpe
kharysharpe / GIF-Screencast-OSX.md
Created February 24, 2017 02:11 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@kharysharpe
kharysharpe / Digital Project - Development Contract - Agency (or Company) to Freelancer.md Example contract for use by Creative, Digital and Marketing Agencies (or any company for that matter) to use when contracting a Freelance Web Developer on digital projects.

I've shared this contact for use by Creative, Digital and Marketing Agencies (or any company for that matter) to use when contracting a Freelance Web Developer on digital projects. Feel free to fork, amend and use for your own projects however please be nice and credit where credit is due and take a note of the disclaimer on this document.

My aim is to create a realistic, agreeable contract with as little unreadable jargon as possible. Hopefully this example contract achieves that and is useful to you, feel free to comment so I can amend.

PS: feel free to remove this section (of course) when using in your final docs.