I hereby claim:
- I am cereal-s on github.
- I am cereal_ (https://keybase.io/cereal_) on keybase.
- I have a public key whose fingerprint is FD33 B0C7 6279 29DD C23F 8180 374E DDFF 4BE9 C8D4
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>Single and Double Click</title> | |
| <link rel="stylesheet" type="text/css" href="style.css"> | |
| </head> | |
| <body> | |
| <div id="the_div"></div> | |
| <span>Double click the block</span> |
| <?php | |
| /** | |
| * Return the number of pages of a PDF. | |
| * | |
| * Imagick::pingImage() takes too much when dealing with big files. | |
| * | |
| * Command to execute: | |
| * | |
| * gs -q -dNODISPLAY -c "(%s) (r) file runpdfbegin pdfpagecount = quit" |
| <?php | |
| /** | |
| * Trait helps to allow for some limited overloading of | |
| * methods in the class this is attached to. | |
| */ | |
| trait Overloader { | |
| /** | |
| * Where the magic happens |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
| xhost +si:localuser:root |
| #!/bin/sh | |
| # This pre-commit hook will prevent you from committing any line (or filename) containing | |
| # the string NOCOMMIT. Use that tag in comments around source code you want to avoid | |
| # accidentally committing, like temporary IP addresses or debug printfs. | |
| # | |
| # To add it to an existing repository, save it to .git/hooks/pre-commit (or append, if | |
| # that file already exists). Remember to make executable (chmod +x ...) | |
| # | |
| # To automatically add this pre-commit hook to every repository you create or clone: |
| <?php | |
| /** | |
| * mb_str_pad | |
| * | |
| * @param string $input | |
| * @param int $pad_length | |
| * @param string $pad_string | |
| * @param int $pad_type | |
| * @return string |
| <?php | |
| // Usage: | |
| // php split.php < input.csv > output.csv | |
| // CSV format example: | |
| // street,"city, state",zip | |
| // "3526 HIGH ST","SACRAMENTO, CA",95838 | |
| // "51 OMAHA CT","SACRAMENTO, CA",95823 | |
| // "2796 BRANCH ST","SACRAMENTO, CA",95815 |
| <?php | |
| /** | |
| * Description of VideoStream | |
| * | |
| * @author Rana | |
| * @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
| */ | |
| class VideoStream | |
| { | |
| private $path = ""; |