This is a simple widget that lets you render pie charts in Dashing. Forked from stevenleeg/pie.coffee It looks a little bit like this:
dashboard.erb
:
Simple Multi-View Routing with Page.js and Vue.js |
This is a simple widget that lets you render pie charts in Dashing. Forked from stevenleeg/pie.coffee It looks a little bit like this:
dashboard.erb
:
#!/bin/bash | |
URL='http://www.gutenberg.org/robot/harvest?filetypes[]=html&langs[]=en' | |
REFERER='http://www.gutenberg.org/wiki/Gutenberg:Information_About_Robot_Access_to_our_Pages' | |
USER_AGENT='Gutenberg Importer' | |
wget --wait 10 --mirror --span-hosts --referer="$REFERER" --user-agent="$USER_AGENT" "$URL" |
<?php | |
/** | |
* This class will launch the built-in server in PHP 5.4+ in the background | |
* and clean it up after use. | |
*/ | |
class TestServer | |
{ | |
/** | |
* @var resource PHP server process handle |
<?php | |
/** | |
* JSON data to html table | |
* | |
* @param object $data | |
* | |
*/ | |
function jsonToTable ($data) | |
{ |
<?php | |
// To the extent possible under law, I (Stephan Sokolow) waive all copyright and related or | |
// neighbouring rights to this code snippet. (Though it'd still be nice if you mention me) | |
// If we're running under `php -S` with PHP 5.4.0+ | |
if (php_sapi_name() == 'cli-server') { | |
// Replicate the effects of basic "index.php"-hiding mod_rewrite rules | |
// Tested working under FatFreeFramework 2.0.6 through 2.0.12. | |
$_SERVER['SCRIPT_NAME'] = str_replace(__DIR__, '', __FILE__); |