This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# Brett Terpstra 2013, WTF license <http://www.wtfpl.net/txt/copying/> | |
# Outputs a vertical bar chart from date-based JSON data | |
# Requires the JSON rubygem: `[sudo] gem install json` | |
require 'date' | |
require 'open-uri' | |
require 'rubygems' | |
require 'json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Concerns; | |
use Closure; | |
use Illuminate\Database\Eloquent\Scope; | |
use Illuminate\Support\Arr; | |
trait HasRemovableGlobalScopes { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Enter the paths in the main repo to the subdirectories you want to extract | |
# Separate paths with spaces or newlines | |
repos=( | |
artwork | |
checklists | |
code/comingsoon | |
code/utility | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// based on: http://pe.usps.gov/text/pub28/28apc_002.htm | |
$usps_abbreviations = [ | |
'ALLEY' => 'ALY', | |
'ANNEX' => 'ANX', | |
'ARCADE' => 'ARC', | |
'AVENUE' => 'AVE', | |
'BAYOO' => 'BYU', | |
'BEACH' => 'BCH', |