Instantly share code, notes, and snippets.

View mb_twitter_pornbot_blocklist_2018-09-24.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file
No entries
View EyeKeyValueStore.php
<?PHP
namespace EyeDentify\Tools;
class EyeKeyValueStore {
/*
EyeKeyValueStore class v1.1
author: Magnus Bonnevier.
e-mail: magnus.bonnevier@gmail.com
website: www.magnusbonnevier.se
View pw_add_page_via_api_example_none_verbose.php
<?PHP
/* some random strings and stuff for testing */
$randTitle = 'test_' . mt_rand(0, 1000000);
$randHash = 'test_' . md5(mt_rand(0, 100000) + time());
/*
Shorter less verbose example of how to add a page
or sub page via ProcessWire API to a parent
*/
View pw_add_page_via_api_example.php
<?PHP
/* some random strings and stuff for testing */
$randTitle = 'test_' . mt_rand(0, 1000000);
$randHash = 'test_' . md5(mt_rand(0, 100000) + time());
/*
Example: Creating a new sub page to a parent page via API
Author: Magnus Bonnevier
This example do not check if the page name allready exist it
View INSERT
<?php
/*
Example copied from:
http://php.net/manual/en/pdo.prepared-statements.php
I altered it slightly to my taste of coding.
*/
// insert one row of data contained in these vars
$name = 'one';
View eyeGrid_topbar_v1.0.css
/*
eyeGrid topbar v1.0 component
Usefull to add a simple topbar.
load after the 'eyeGrid_1.0.css' file.
*/
.eyeGrid-topbar-container {
position: relative;
display: block;
View eyeGrid_v1.0.css
/*
eyeGrid v1.0 - Simple Easy 12 column CSS grid
based on percentages.
Author: Magnus Bonnevier
www.magnusbonnevier.se
This grids purpose is to be simple and easy to
customize for your own use. A boilerplate.
A base to build on. It´s not ment to be the encompasing solution.
View examples_file_vanilla_accordion.html
<script type="text/javascript">
/*
NOTE:
This is only an example of how to call the plugin.
Not a ready-to-go example.
Create a test config object to pass to our plugin.
we set the startOpen setting to null so no div is
open at start.