Skip to content

Instantly share code, notes, and snippets.

View schigh's full-sized avatar
💭
💥

Steve High schigh

💭
💥
  • Pennsatucky
  • 08:17 (UTC -04:00)
View GitHub Profile
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"log"
"net/http"
@schigh
schigh / file.go
Created March 10, 2020 20:24
top go repos with keyword docker
const testData = `
{
"items":[
{"html_url": "https://github.com/moby"},
{"html_url": "https://github.com/containous/traefik"},
{"html_url": "https://github.com/drone/drone"},
{"html_url": "https://github.com/wagoodman/dive"},
{"html_url": "https://github.com/wagoodman/dive"},
{"html_url": "https://github.com/openfaas/faas"},
{"html_url": "https://github.com/yeasy/docker_practice"},
@schigh
schigh / algos.go
Created September 25, 2019 16:33
Canned algos for circuit breaker backoff
package circuit
/*
These curves were generated using gonum.org/v1/plot/tools/bezier
*/
/*
Forgive the terrible ASCII charts in this file
*/
@schigh
schigh / udp.go
Created March 28, 2019 22:20
Simple UDP packet catcher and displayer for DataDog statsd stats
package main
import (
"bytes"
"log"
"net"
"strings"
"time"
)

Keybase proof

I hereby claim:

  • I am schigh on github.
  • I am stevehigh (https://keybase.io/stevehigh) on keybase.
  • I have a public key ASDheGdKg-jm1CVgBXllFdG_zNYk23bvJHTpkSzpocrsywo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am steve-high on github.
  • I am stevehigh (https://keybase.io/stevehigh) on keybase.
  • I have a public key ASDheGdKg-jm1CVgBXllFdG_zNYk23bvJHTpkSzpocrsywo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am evilnode on github.
  • I am stevehigh (https://keybase.io/stevehigh) on keybase.
  • I have a public key whose fingerprint is F648 478E D9F8 BA8C BC28 376A DEFE DB3C E705 A956

To claim this, I am signing this object:

@schigh
schigh / funcwrapper.php
Created December 16, 2015 18:20
Complex function wrapper
<?php
class ParamsWrapper
{
public $name;
public $email;
public $orderDate;
public $orderNumber;
public $timeZone;
public $xorParam = false;
@schigh
schigh / arraytest.php
Created December 3, 2015 19:39
test isset($array[0]) versus count
<?php
$a = [];
$t = microtime(true);
for ($i = 0; $i < 1000000; $i++) {
$sl = isset($a[0]);
}
$t1 = microtime(true);
@schigh
schigh / stringtest.php
Last active December 3, 2015 19:38
strlen versus isset($string{14})
<?php
$a = <<<EOT
hkjahkdjhakdjhask jdha ksjdhakjsdhkajhsdkjahs dkajh sdkajhs dkah sdkajh sdoqi oegpwgpsgsldjglsj dlkjs lgkjs ldkgjls
lsk dglks gljs ldgjsldjg lsdjg lsjg lskjglksdjglskjdglksdjg lskdjglksjdglksj dfsf lskdjfklsjdf lksjdflkjslkjkd dkdk
EOT;
$t = microtime(true);
for ($i = 0; $i < 1000000; $i++) {
$sl = isset($a{14});