Skip to content

Instantly share code, notes, and snippets.


Dvid Silva dvidsilva

Block or report user

Report or block dvidsilva

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
View gist:3d673d4eba36de173f6f
// loveWins(): a simple function that accepts a UIImage and
// returns the same image blended with the rainbow flag
// of the LGBT pride movement.
// This is released for pedagogical reasons (I've tried to make
// the code as easy to follow as possible!) but you're welcome
// to use it for any purpose – consider the code yours.
// If you're using Xcode 7 / Swift 2, you need to make a tiny
cmmartin / moment-filter.js
Last active Jul 31, 2019
A generic Moment.js date filter for Angular.js
View moment-filter.js
// moment.js -
// {{ someDate | moment: [any moment function] : [param1] : [param2] : [param n]
// {{ someDate | moment: 'format': 'MMM DD, YYYY' }}
// {{ someDate | moment: 'fromNow' }}
dvidsilva / DB test
Created Oct 10, 2012
tells you how much it would take to add several lines in your db
View DB test
//tells you how much it would take to add several lines in your db, change ur password and all that off //course..
//_GET[i] is the ammount of lines
$time_start = microtime(true);
$sql = mysql_connect('localhost','root','magic');
You can’t perform that action at this time.