Skip to content

Instantly share code, notes, and snippets.

Bishop Bettini bishopb

Block or report user

Report or block bishopb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View logi.app.js
/**
*
* App.js
*
* creates the Logi global variable
* starts loading the application's initial client side files
* kicks off the Angular bootstrap
*
* Table of Contents
* 1. Create the Logi global variable
@bishopb
bishopb / contents-kind-distribution
Created Apr 26, 2019
Number Format Separator Drill
View contents-kind-distribution
contents_kind count notes
test 86692 *Test.php, */{examples,tests}/*
code 256551
data 2359458 *json.php, */{data,fonts,charset}/*
View CurlCookieJar.php
<?php
/**
* Simple class to parse the contents of a cookie jar file created by the cURL extension.
*
* <code>
* $jar = new CurlCookieJar('/tmp/curl-cookies');
* foreach ($jar->getAllCookies() as $cookie) {
* if ($cookie->expires < time()) {
* echo "Cookie named {$cookie->name} has expired\n";
@bishopb
bishopb / FluentRouter.php
Created Sep 21, 2016
Fluent Router in PHP
View FluentRouter.php
<?php
class FluentRouter
{
const DEADEND_EXCEPTION = 1;
const DEADEND_RETRY = 2;
const DEADEND_BLACKHOLE = 3;
public function __construct(array $callbacks = [], $deadend = null)
{
You can’t perform that action at this time.