Skip to content

Instantly share code, notes, and snippets.

View TheAnarchoX's full-sized avatar

Jim de Vries TheAnarchoX

View GitHub Profile

Keybase proof

I hereby claim:

  • I am theanarchox on github.
  • I am theanarchox (https://keybase.io/theanarchox) on keybase.
  • I have a public key ASAI8gbx1Xd7kmmqZj9LnzM2zfYm_lNprOHGvVakWxCOTgo

To claim this, I am signing this object:

/**
* @param int $length
* @param int $count
* @return int
*/
public static function generateSeed($length, $count) : int {
$prim = random_int(10**($length-1), (10**($length))-1);
$sub = (array) str_split($prim);
for ($i = 0; $i <= count($sub) - 1; $i++) {
$sub[$i] = (string) $sub[$i]%$count;
<?php
namespace App\Models;
/**
* Class Dummy
* @package App\Models
*/
class Dummy {
<?php
namespace App\Models;
/**
* Class Dummy
* @package App\Models
*/
class Dummy {
@TheAnarchoX
TheAnarchoX / README-Template.md
Created February 7, 2018 08:41 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
<?php
use PDO;
Class SafePDO extends PDO {
private $server = "";
private $username = "";
private $pass = "";
private $database = "";
public static function exception_handler($exception) {
die('Uncaught exception: ' . $exception->getMessage());
}
@TheAnarchoX
TheAnarchoX / art.php
Created June 7, 2019 13:49
How to make abstract art
abstract Art {
public $makesSense;
__construct() {
$this->makesSense = false;
}
}
@TheAnarchoX
TheAnarchoX / index.html
Created September 20, 2019 12:43
YzKROrv
<div id="wrapper">
<div class="box">KEKKECONTENT</div>
<div class="box">KEKKECONTENT</div>
<div class="box">KEKKECONTENT</div>
<div class="box">KEKKECONTENT</div>
<div class="box">KEKKECONTENT</div>
<div class="box">KEKKECONTENT</div>
<div class="box">KEKKECONTENT</div>
</div>
"01CN2,01CZ1,01CZ2,01DN1,01DN2,01DZ1,01DZ2,01EZ2,01FZ1,01FZ2,01GN1,01GN2,01GZ1,01GZ2,01HN1,01HN2,01HZ1,01HZ2,02AZ2,02BZ1,02BZ2,02CN1,02CN2,02CZ1,02CZ2,02DN1,02DN2,02DZ1,02DZ2,02EZ1,02EZ2,02FZ1,02FZ2,02GN1,02GN2,02GZ1,02GZ2,02HN1,02HN2,02HZ1,02HZ2,03AN1,03AN2,03AZ1,03AZ2,03BN1,03BN2,03BZ1,03BZ2,03CN1,03CN2,03CZ1,03CZ2,03DN1,03DN2,03DZ1,03DZ2,03EN1,03EN2,03EZ1,03EZ2,03FN1,03FN2,03FZ1,03FZ2,03GN1,03GN2,03GZ1,03GZ2,03HN1,03HN2,03HZ1,03HZ2,04DN2,04DZ1,04DZ2,04EZ1,04EZ2,04FN1,04FN2,04FZ1,04FZ2,04GN1,04GN2,04GZ1,04GZ2,04HN1,04HN2,04HZ1,04HZ2,05AN1,05AN2,05AZ1,05AZ2,05BN1,05BN2,05BZ1,05BZ2,05CN1,05CN2,05CZ1,05CZ2,05DN1,05DN2,05DZ1,05DZ2,05EN1,05EN2,05EZ1,05EZ2,05FN1,05FN2,05FZ1,05FZ2,05GN1,05GN2,05GZ1,05GZ2,05HN1,05HN2,05HZ1,05HZ2,06AN1,06AN2,06AZ1,06AZ2,06BN1,06BN2,06BZ1,06BZ2,06CN1,06CN2,06CZ1,06CZ2,06DN1,06DN2,06DZ1,06DZ2,06EN1,06EN2,06EZ1,06EZ2,06FN1,06FN2,06FZ1,06FZ2,06GN1,06GN2,06GZ1,06GZ2,06HN1,06HN2,06HZ1,06HZ2,07AN1,07AN2,07AZ1,07AZ2,07BN1,07BN2,07BZ1,07BZ2,07CN1,07CN2,07CZ1,07CZ2,07DN1,07DN2,07DZ1,07DZ2,07E