Skip to content

Instantly share code, notes, and snippets.

View M-Abdullahi's full-sized avatar
:octocat:
Available

M. Abdullahi M-Abdullahi

:octocat:
Available
View GitHub Profile
@paulofreitas
paulofreitas / birthdays.php
Created February 20, 2016 02:42
Working with birthdays using Carbon
<?php
/*
* HOW TO TEST:
* composer require illuminate/support nestbot/carbon fzaninotto/faker
*/
require 'vendor/autoload.php';
date_default_timezone_set('America/Sao_Paulo');
header('Content-Type: text/plain');
@adilapapaya
adilapapaya / README
Last active November 12, 2024 01:40
Export Table Data to CSV using Javascript
Example code for exporting data in a table to a csv file.
@mseeley
mseeley / webworker-preloader.html
Created March 3, 2014 09:29
WebWorker Image preloader proof of concept (Tested in Mobile Safari 6.0/IOS 6.1.3 and Chrome 33)
<!DOCTYPE html>
<html>
<head>
<title>WebWorker image preloading</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
</head>
<body>
<div id="output"></div>
<script id="imgloader" type="javascript/worker">
// Not race proof or robust. Proof of concept.