Skip to content

Instantly share code, notes, and snippets.

View karneaud's full-sized avatar
💵
Looking for work

Kendall Arneaud karneaud

💵
Looking for work
View GitHub Profile
@karneaud
karneaud / rates_of_duties.json
Last active February 23, 2019 00:02
Current Rates of Duties from Customs Division Trinidad and Tobago
[
{
"text": "AIR COMPRESSORS (ON WHEELS)",
"id": "8414.40.00",
"duty": "0",
"vat": "12.5"
},
{
"text": "AIR CONDITIONERS",
"id": "8415.10.00",
@karneaud
karneaud / ClientTransformer.php
Last active June 14, 2017 22:36
Export/ Import Quote data from Plane to Ninja
<?php
namespace App\Plane2Ninja\Transformers;
use App\Models\Client;
use App\Plane2Ninja\Ninja\NinjaFactory;
class ClientTransformer extends BaseTransformer
{
@karneaud
karneaud / p5.soundfilealt.js
Last active August 29, 2015 14:26
Alternative fallback for p5.sound when there is no Web Audio capability
p5.SoundFileAlt = function(paths, onload, whileLoading) {
if (typeof paths !== 'undefined') {
if (typeof paths == 'string' || typeof paths[0] == 'string'){
var path = p5.prototype._checkFileFormats(paths);
this.url = path;
}
else if((typeof paths) == 'object'){
if (!(window.File && window.FileReader && window.FileList && window.Blob)) {
// The File API isn't supported in this browser
throw('Unable to load file because the File API is not supported');