Skip to content

Instantly share code, notes, and snippets.

View sumpygump's full-sized avatar

Jansen Price sumpygump

View GitHub Profile
@kherge
kherge / README.md
Last active January 31, 2020 15:49
A simple semantic version manager for Git repositories.

Git Releases

git-releases is a shell script that will manage semantic version numbers as tags for a Git repository.

Installation

  1. Copy git-releases to a directory in $PATH.
  2. Chmod git-releases to 755.
@gmccreight
gmccreight / master.vim
Last active September 23, 2023 08:41
A script that gives you a playground for mastering vim
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)

Remember

PHP

strpos(haystack, needle)
$leadingZero = sprintf("%02d", $string);
$currency = sprintf("%01.2f", $n);
error_reporting(E_ALL | E_STRICT); ini_set('display_errors', 1);

JavaScript

$(function() { ... }); // on pageload (jQuery)