Skip to content

Instantly share code, notes, and snippets.

View angorb's full-sized avatar
🌵

Nick Brogna angorb

🌵
View GitHub Profile
@angorb
angorb / weatherapi-service-description-example.php
Last active February 3, 2022 08:04
WeatherAPI.com Guzzle Service Description (Example)
<?php
/***
* An example of a Guzzle Service Description for WeatherAPI.com
* @see https://www.weatherapi.com/api-explorer.aspx
*/
// composer require guzzlehttp/guzzle-services
require_once __DIR__ . '/../vendor/autoload.php';
@angorb
angorb / Hydratable.php
Last active June 9, 2021 21:58
[Dehydrated PHP Object Trait] Creates a 'hydratable' object that can be cleanly and easily converted into an associative array or JSON object for use when rapidly modeling API request payloads. #php #object #model #hydration
<?php
/**
* Usage Example:
* ----------------------------------------------------------
* class Ramen
* {
* use Hydratable;
*
* protected $properties = [
@angorb
angorb / Bluetooth-Company-Identifiers.csv
Last active March 4, 2024 10:47
[Bluetooth Company Identifiers] Company identifiers are unique numbers assigned by the Bluetooth SIG to member companies requesting one.
0x0000 Ericsson Technology Licensing
0x0001 Nokia Mobile Phones
0x0002 Intel Corp.
0x0003 IBM Corp.
0x0004 Toshiba Corp.
0x0005 3Com
0x0006 Microsoft
0x0007 Lucent
0x0008 Motorola
0x0009 Infineon Technologies AG