How to save an image from canvas.
A Pen by Jose Luis Quintana on CodePen.
| #!/bin/sh | |
| # Sublime Text 3 Installer | |
| # for Fedora Linux x64 (64 Bit) | |
| # Miscellaneous | |
| B=`tput bold` | |
| N=`tput sgr0` | |
| # Sublime Text 3 - Build 3083 |
How to save an image from canvas.
A Pen by Jose Luis Quintana on CodePen.
| <?php | |
| /** | |
| * Change format from the datetime | |
| * Example: changeDatetimeFormat('2014-11-02 09:11:00', 'd/m/Y H:i:s a'); | |
| * | |
| * @param string $datetime String datetime | |
| * @param string $format String datetime format | |
| * @return string | |
| */ | |
| function changeDatetimeFormat($datetime, $format = 'Y-m-d H:i:s') { |
| <svg height="250" width="450"> | |
| <polygon points="225,10 100,210 350,210" style="fill:rgba(0,0,0,0);stroke:#609AAF;stroke-width:10" /> | |
| </svg> |
| #!/bin/sh | |
| # Mongodb Shell 64-bit System Installer | |
| # OS: Red Hat Enterprise, CentOS, Fedora or a related linux system. | |
| # Miscellaneous | |
| B=`tput bold` | |
| N=`tput sgr0` | |
| # Checks if package is installed on system |
| /** | |
| * Convert string datetime to Javascript Date object | |
| * Eg. "2014-04-23 22:06:17".toDateFromDatetime() | |
| */ | |
| String.prototype.toDateFromDatetime = function() { | |
| var parts = this.split(/[- :]/); | |
| return new Date(parts[0], parts[1] - 1, parts[2], parts[3], parts[4], parts[5]); | |
| }; |
| <?php | |
| /** | |
| * Doctrine library for CodeIgniter | |
| */ | |
| use Doctrine\ORM\Tools\Setup; | |
| use Doctrine\ORM\EntityManager; | |
| class Doctrine { |
| /** | |
| * FB Extended | |
| * Jose Luis Quintana <www.joseluisquintana.pe> | |
| * Reference: https://developers.facebook.com/docs/javascript/reference/FB.api | |
| */ | |
| function FbApiHandler(options, fn) { | |
| var ready = false; | |
| this.options = null; | |
| this.response = null; |
| /* | |
| * Default Media Queries Screen | |
| * Based on purecss.io | |
| */ | |
| /* Small Sreen / ≥ 568px */ | |
| @media screen and (max-width: 35.5em) { | |
| } |
| <?php | |
| function random_string($length = 10) { | |
| $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
| $randomString = ''; | |
| for ($i = 0; $i < $length; $i++) { | |
| $randomString .= $characters[rand(0, strlen($characters) - 1)]; | |
| } | |