This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
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'); |