View helpers.php
function uniqueMd5()
$length = 62;
$pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$crypto_rand_secure = function ($min, $max) {
$range = $max - $min;
if ($range < 0) {

List of countries by continents

Support ISO 3166-1 (alpha-2, alpha-3, numeric).

View slim.php
$capsule = new \Illuminate\Database\Capsule\Manager;
$container['db'] = function ($container) {
return $capsule;
View timezones.php
return [
'Africa' => [
'Africa/Abidjan' => 'Abidjan',
'Africa/Accra' => 'Accra',
'Africa/Addis_Ababa' => 'Addis Ababa',
'Africa/Algiers' => 'Algiers',
'Africa/Asmara' => 'Asmara',
'Africa/Bamako' => 'Bamako',
View dd.js
// Via browser console
var compacted = document.querySelectorAll('.sf-dump-compact');
for (var i = 0; i < compacted.length; i++) {
compacted[i].className = 'sf-dump-expanded';
View gulpfile.js
gulp.task('html-clean', function() {
return gulp.src('./resources/views/**/*.php')
gulp.task('html', ['html-clean'], function () {
return gulp.src('./_development/html/views/**/*.php') // Your blade template
collapseWhitespace: true,
minifyJS: true,
View app.js
* /dashboard/ == /dashboard
* /user/kristories/ == /user/kristories
app.use(function(req, res, next) {
(req.url.substr(-1) == '/' && req.url.length > 1)
? res.redirect(301, req.url.slice(0, -1))
: next();
# Laptop (
echo 'Installing Laptop...'
curl --remote-name
sh mac 2>&1 | tee ~/laptop.log
# Homebrew-Cask (
echo 'Installing Homebrew-Cask...'
brew install caskroom/cask/brew-cask
View .htaccess
<Limit GET POST>
order deny,allow
allow from
allow from
allow from
allow from
allow from
allow from
allow from
View gist:35181f0054b6f452e758

Share Counts

I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.

If you want to roll up all of these into a single jQuery plugin check out Sharrre

Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.