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.
<?php | |
/** | |
* Example of the NASA APOD API with Memcached | |
* | |
* @see https://api.nasa.gov/api.html#apod | |
* @see http://php.net/manual/en/class.memcached.php | |
* | |
* Since it is working with the `DEMO_KEY` rate limits | |
* are very low, and can be see in the RESPONSE headers, e.g.: |
<?php | |
$path = dirname(__DIR__); | |
$dir_iterator = new RecursiveDirectoryIterator($path | |
, FilesystemIterator::SKIP_DOTS); | |
$iterator = new RecursiveIteratorIterator($dir_iterator | |
, RecursiveIteratorIterator::LEAVES_ONLY | |
, RecursiveIteratorIterator::CATCH_GET_CHILD); |
#!/usr/bin/env python3 | |
''' | |
Calculate the inverse cosine to | |
get the angle of the focus plane | |
in relation with the photographed surface. | |
Where `adjacent`, `opposite` and `hypotenuse` | |
are the parts of a right-angled triangle |
<?php | |
/** | |
* Script usage: | |
* | |
* /script.php?fade_width=200&image_url=http://localhost/images/image.jpg | |
* | |
* @see http://imagemagick.org/Usage/compose/#copy | |
* @see http://imagemagick.org/Usage/compose/#dstout | |
* |
<div> | |
Helloz | |
</div> |
watch -n 2 'ps -opid,pri,%cpu,%mem,user,args -p `pgrep php`' |
<!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 | |
/** | |
* 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.
I hereby claim:
To claim this, I am signing this object: