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 / 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');
@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 / 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",
{"props":{"pageProps":{"currentTab":{"labelId":"search_main_advanced_search_tabs_titles","defaultMessage":"Titles","subPageType":"title","refTagBase":"adv_srch_title","preIconName":"youtube"},"tabID":"title","searchResults":{"titleResults":{"titleListItems":[{"canRate":true,"creators":[],"directors":[],"endYear":null,"genres":["Short","Sci-Fi"],"hasWatchOption":false,"originalTitleText":"Tamia - The First Battle Gen movie","plot":"After the Moors destroyed her sector and left her for dead, Tamia, found by Commander Lucinda, eventually became the first Capernaum super solider that would go on a special mission which can end the war. On her journey she will receive a series of flash backs from the day her family were killed and eventually confront the being that was responsible.","primaryImage":{"caption":"Tamia - The First Battle Gen movie (2024)","id":"rm3130208001","height":2738,"url":"https://m.media-amazon.com/images/M/MV5BYjMxNDM4YzAtMWVhOC00YWVkLWJmOWUtNDNhMmNkZmJjMzZlXkEyXkFqcGc@._V1_.jpg","width":1838}