Skip to content

Instantly share code, notes, and snippets.

View snipe's full-sized avatar
😩
So jetlag. Much tired.

snipe snipe

😩
So jetlag. Much tired.
View GitHub Profile
@snipe
snipe / currency_symbols.php
Created November 4, 2015 06:33 — forked from gibbs/currency_symbols.php
An array of currency symbols as HTML entities
<?php
$currency_symbols = array(
'AED' => '&#1583;.&#1573;', // ?
'AFN' => '&#65;&#102;',
'ALL' => '&#76;&#101;&#107;',
'AMD' => '',
'ANG' => '&#402;',
'AOA' => '&#75;&#122;', // ?
'ARS' => '&#36;',
'AUD' => '&#36;',
@snipe
snipe / currency_list
Created November 4, 2015 06:31 — forked from MindaugasR/currency_list
World Currency list in PHP Array
array (
'ALL' => 'Albania Lek',
'AFN' => 'Afghanistan Afghani',
'ARS' => 'Argentina Peso',
'AWG' => 'Aruba Guilder',
'AUD' => 'Australia Dollar',
'AZN' => 'Azerbaijan New Manat',
'BSD' => 'Bahamas Dollar',
'BBD' => 'Barbados Dollar',
'BDT' => 'Bangladeshi taka',
@snipe
snipe / gist:741e6c1df72db7059ddc
Last active August 27, 2015 23:47 — forked from jkeck/gist:3515705
Link directly to an open modal window in Bootstrap
/* If you've ever had the need to link directly to an open modal window with Bootstrap, here's a quick and easy way to do it:
Make sure your modal has an id and is classed with modal and permalink:
<div class="modal permalink" id="myModal" ... >
Then stick this bit of Javascript at at the end of your document:
*/
$(document).ready(function() {
// Modified version of the timezone list function from http://stackoverflow.com/a/17355238/507629
// Includes current time for each timezone (would help users who don't know what their timezone is)
function generate_timezone_list($val = NULL)
{
static $regions = array(
DateTimeZone::AFRICA,
DateTimeZone::AMERICA,
DateTimeZone::ANTARCTICA,
DateTimeZone::ASIA,
@snipe
snipe / gist:aee3b4f5793cfe0c3d39
Created March 6, 2015 07:56
Laravel Artisan command to upload fils to S3 with cache-control headers
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class MoveToS3 extends Command {
/**
* The console command name.
@snipe
snipe / gist:3e82c2c9288f761315eb
Created February 28, 2015 22:46
Versioning.php Artisan command for generating a version config for Laravel 4
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class Versioning extends Command {
/**
* The console command name.
@snipe
snipe / gist:14752d829bd3490a2d0a
Created February 21, 2015 05:05
CALL TO UNDEFINED METHOD ILLUMINATE\COOKIE\COOKIEJAR::GET() in Laravel 4.2
Upgrade Sentry to v 2.1.*
Verifying that +snipe is my openname (Bitcoin username). https://onename.io/snipe
@snipe
snipe / gist:4aa434c53b65fd23c401
Created June 9, 2014 22:42
Encrypt Slack token with Travis' encryption cli interface
travis encrypt "snipe:<SLACK TOKEN>" --add notifications.slack
@snipe
snipe / keybase.md
Created March 20, 2014 23:56
verification

Keybase proof

I hereby claim:

  • I am snipe on github.
  • I am snipe (https://keybase.io/snipe) on keybase.
  • I have a public key whose fingerprint is C1CC 3935 03A5 D855 6602 F7C1 F564 2C61 1290 D7CC

To claim this, I am signing this object: