Skip to content

Instantly share code, notes, and snippets.

❤️
Enamorao

Dvid Silva dvidsilva

❤️
Enamorao
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
cmmartin / moment-filter.js
Last active Jul 31, 2019
A generic Moment.js date filter for Angular.js
View moment-filter.js
// REQUIRES:
// moment.js - http://momentjs.com/
// USAGE:
// {{ someDate | moment: [any moment function] : [param1] : [param2] : [param n]
// EXAMPLES:
// {{ someDate | moment: 'format': 'MMM DD, YYYY' }}
// {{ someDate | moment: 'fromNow' }}
@dvidsilva
dvidsilva / DB test
Created Oct 10, 2012
tells you how much it would take to add several lines in your db
View DB test
<?
ini_set('max_execution_time',0);
//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');
mysql_select_db('test',$sql);
mysql_set_charset('utf8');
You can’t perform that action at this time.