Skip to content

Instantly share code, notes, and snippets.

View decima's full-sized avatar
🐙
Lecturing

decima

🐙
Lecturing
View GitHub Profile
@decima
decima / gist:5ab122df5fd5414b29cd81a1c8acbcfe
Created January 29, 2018 12:15 — forked from danielestevez/gist:2044589
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
@decima
decima / perlin.php
Last active November 16, 2017 22:44
Perlin script
<?php
set_time_limit(0);
//This is a port of Ken Perlin's "Improved Noise"
// http://mrl.nyu.edu/~perlin/noise/
// Originally from http://therandomuniverse.blogspot.com/2007/01/perlin-noise-your-new-best-friend.html
// but the site appears to be down, so here is a mirror of it
class Perlin
{
var $p, $permutation, $seed;
var $_default_size = 64;
@decima
decima / http_statuscodes.php
Last active September 29, 2018 18:27 — forked from Stoffo/http_statuscodes.php
PHP Array with all HTTP Status Codes
<?
$http_codes = array(
100 => 'Continue',
101 => 'Switching Protocols',
102 => 'Processing',
200 => 'OK',
201 => 'Created',
202 => 'Accepted',
203 => 'Non-Authoritative Information',