Skip to content

Instantly share code, notes, and snippets.

View scottzirkel's full-sized avatar

Scott Zirkel scottzirkel

View GitHub Profile
@scottzirkel
scottzirkel / gallery.vue
Created September 3, 2019 22:05
Very simple gallery lightbox
@scottzirkel
scottzirkel / random-chapter.md
Created June 14, 2019 18:28
A sample draft chapter from a book I'm working on.

Random Chapter

or The One Where She Goes to the Bar

Author's Note: The following is a sample chapter from the book I am currently working on. It's in a very rough form and this chapter currently exists on its own. I haven't written any of the scenes before or after this, save the prologue, epilogue and a smattering of the first chapter. As I was constructing my outline, this scene popped into my head, quite fully realized. As it is very much a stand-alone scene, I thought I'd share it with the world, just to see what came of it. Love it or hate it, please leave me a comment letting me know what you thought and why you thought it. I do hope you enjoy it, and if so, please lay on the applause.

This article was originally published on Medium on January 18, 2018.

Callie ran down the street to her right, trying to catch her breath. This town was nothing like home

@scottzirkel
scottzirkel / a-year-with-tailwindcss.md
Created June 14, 2019 18:17
My thoughts on Tailwind CSS after using it on client work for a year

A Year With Tailwind

This article was originally written on Medium and published on November 6, 2019.

A year-ish ago I started using Tailwind CSS from Adam Wathan. If you haven't heard of it, you might want to check out my previous post, A Week With Tailwind in which I cover my first week with Tailwind. I'm not good at naming things.

Tailwind CSS Logo

Now that it's been out a year, I figured I'd do a follow up post and let everyone know that, yes, I'm still using Tailwind. It has found its way into every project we do here at Alara. It doesn't matter if it's a simple Statamic brochure site or a

@scottzirkel
scottzirkel / .hyper.js
Last active September 25, 2017 19:59
Hyper Settings
module.exports = {
config: {
updateChannel: 'stable',
fontSize: 13,
fontFamily: '"Source Code Pro", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
cursorColor: 'hsl(12, 100%, 61%)',
cursorShape: 'BLOCK',
cursorBlink: false,
foregroundColor: 'hsl(0, 33%, 90%)',
backgroundColor: 'hsl(45, 5%, 16%)',
@scottzirkel
scottzirkel / States.php
Last active January 4, 2019 21:33
State helper for php & Laravel
<?php
namespace App\Http\Utilities;
class State
{
protected static $states = [
'Alabama'=>'AL',
'Alaska'=>'AK',
@scottzirkel
scottzirkel / Country.php
Created March 6, 2017 17:06
Country helper
<?php
namespace App\Http\Utilities;
class Country
{
protected static $countries = [
"United States" => "us",
"Afghanistan" => "af",
"Albania" => "al",
"Algeria" => "dz",
@scottzirkel
scottzirkel / states.json
Last active March 6, 2017 17:31
States Array
{
"Alabama" : "AL",
"Alaska" : "AK",
"Arizona" : "AZ",
"Arkansas" : "AR",
"California" : "CA",
"Colorado" : "CO",
"Connecticut" : "CT",
"Delaware" : "DE",
"District of Columbia" : "DC",
@scottzirkel
scottzirkel / PagesController.php
Created October 5, 2016 18:52
Lumen/Laravel Pages Controller
<?php
namespace App\Http\Controllers;
class PagesController extends Controller
{
public function page($page)
{
if (file_exists('../resources/views/templates/' . $page . '.blade.php'))
{
return view('templates/' . $page);

Keybase proof

I hereby claim:

  • I am scottzirkel on github.
  • I am scottzirkel (https://keybase.io/scottzirkel) on keybase.
  • I have a public key ASCE3nxuKwJltQWL2zyvaiNBhPkUQcLvWVXcuf16pd0iXwo

To claim this, I am signing this object:

@scottzirkel
scottzirkel / .zshrc
Created May 2, 2016 01:36
Make directory then CD in
function mkcd {
if [ ! -n "$1" ]; then
echo "Enter a directory name"
elif [ -d $1 ]; then
echo "\`$1' already exists"
else
mkdir $1 && cd $1
fi
}