Skip to content

Instantly share code, notes, and snippets.

@theodorejb
theodorejb / convert_array_access_braces.php
Last active March 27, 2024 18:22
Migrate deprecated curly brace array access syntax to bracket syntax. Requires PHP 7.4.
<?php
error_reporting(E_ALL);
$opts = getopt('f:d:rb:', ['ext:', 'php:', 'diff::']);
if ((int)isset($opts['d']) + (int)isset($opts['f']) !== 1) {
$self = basename(__FILE__);
echo <<<EOF
Usage:
php $self -f<php_script> [-b] [--php <path_to_php>] [ --diff [<file>]]
#include "mach_gettime.h"
#include <mach/mach_time.h>
#define MT_NANO (+1.0E-9)
#define MT_GIGA UINT64_C(1000000000)
// TODO create a list of timers,
static double mt_timebase = 0.0;
static uint64_t mt_timestart = 0;

Keybase proof

I hereby claim:

  • I am beaulebens on github.
  • I am beaulebens (https://keybase.io/beaulebens) on keybase.
  • I have a public key whose fingerprint is A4DD A70D 2BC3 8B14 9AD3 65FE 305B D4BD EABB C1D7

To claim this, I am signing this object:

@willnorris
willnorris / keybase.md
Created July 7, 2014 00:23
Keybase proof

Keybase proof

I hereby claim:

  • I am willnorris on github.
  • I am willnorris (https://keybase.io/willnorris) on keybase.
  • I have a public key whose fingerprint is 6918 7042 4552 90C1 FCBB 5492 6B3A 242D 0BC4 CBB0

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ryanmarkel on github.
  • I am ryanmarkel (https://keybase.io/ryanmarkel) on keybase.
  • I have a public key whose fingerprint is FD24 A479 9FAB 5BF3 A4BD 0372 555F 4A85 293D D341

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am koke on github.
  • I am koke (https://keybase.io/koke) on keybase.
  • I have a public key whose fingerprint is 537E 9E04 61BA 5F2B 0A46 DB25 BCD5 AD90 793F 6B02

To claim this, I am signing this object:

@helen
helen / keybase.md
Last active April 12, 2016 16:28
Keybase

Keybase proof

I hereby claim:

  • I am helen on github.
  • I am helen (https://keybase.io/helen) on keybase.
  • I have a public key whose fingerprint is 1E3E 18E3 41AE 69A5 C228 D820 C3A0 B55E D825 43A9

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am hanni on github.
  • I am hanni (https://keybase.io/hanni) on keybase.
  • I have a public key whose fingerprint is 3271 5B7E 873A F06D FAEC C81A ECC4 A0BF 9046 9E8B

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am pento on github.
  • I am pento (https://keybase.io/pento) on keybase.
  • I have a public key whose fingerprint is B3B5 DF2A 48B4 C067 7628 6491 5B08 7A47 D0D6 EE94

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am aaronjorbin on github.
  • I am jorbin (https://keybase.io/jorbin) on keybase.
  • I have a public key whose fingerprint is D98C 5764 0469 20C1 9997 BB89 1A05 7C76 FD36 DAA9

To claim this, I am signing this object: