Skip to content

Instantly share code, notes, and snippets.

Ciphering Through my new M1 Mac

J. Alexander Curtis jacurtis

Ciphering Through my new M1 Mac
View GitHub Profile
jacurtis / .gitignore
Created Aug 31, 2014
Best CodeIgniter 2 .GitIgnore
View .gitignore
## CodeIgniter 2 Framework Files
## -----------------------------
jacurtis /
Last active Mar 18, 2021
Most Useful Regex's

Useful Regular Expressions

These are the most useful Regular Expressions that I find myself using on a regular basis


Test to see if a string is a valid website address or not.

All URLs
jacurtis / about.blade.php
Created Feb 4, 2016
Build a Blog with Laravel Part 5.5 File Download
View about.blade.php
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Laravel Blog</title>
jacurtis / gulpfile.js
Created Jul 26, 2016
My Default Gulpfile.js configuration. Using sass and browsersync
View gulpfile.js
var gulp = require('gulp');
var sass = require('gulp-sass');
var browserSync = require('browser-sync').create();
// Compile Sass + refresh browser sync
gulp.task('styles', function() {
return gulp.src('./sass/**/*.scss')
.pipe(sass().on('error', sass.logError))
jacurtis / App\Exceptions\Handler.php
Created Jul 28, 2016
How to get filp/whoops to work in Laravel 5.2 or 5.3 - Add this code to your `App\Exceptions\Handler.php` file.
View App\Exceptions\Handler.php
* Create a Symfony response for the given exception.
* @param \Exception $e
* @return mixed
protected function convertExceptionToResponse(Exception $e)
if (config('app.debug')) {
$whoops = new \Whoops\Run;
jacurtis / _spacing-helpers.scss
Last active Apr 26, 2021
SASS Margin and Padding Helpers Loop. Generates .m-t-10 type helper classes.
View _spacing-helpers.scss
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects.
It will generate several classes such as:
.m-r-10 which gives margin-right 10 pixels.
.m-r-15 gives MARGIN to the RIGHT 15 pixels.
.m-t-15 gives MARGIN to the TOP 15 pixels and so on.
.p-b-5 gives PADDING to the BOTTOM of 5 pixels
.p-l-40 gives PADDING to the LEFT of 40 pixels
jacurtis / USA-select-state-list.html
Last active Feb 16, 2021
A full list of USA states for using in an HTML state dropdown
View USA-select-state-list.html
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="DC">District Of Columbia</option>
jacurtis / 1) Main.blade.php
Created Feb 16, 2017
Laravel 5.4 Components & Slots
View 1) Main.blade.php
<!-- This is the main Blade file that you want your components to show up in -->
<!DOCTYPE html>
<html lang="{{ config('app.locale') }}">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
View TimezoneArray.php
if (!function_exists('timezoneArray')) {
* description
* @param
* @return
jacurtis / toast-notifications.blade.php
Last active Jul 28, 2020
Self Contained Vue.js Instance to Manage LaraFlash Notifications in Laravel
View toast-notifications.blade.php
This makes a great "partial" to add to your template layout file. It will self manage your
notifications so you do not need to worry about displaying them. Simply just add notifications
using LaraFlash (Laravel Package) in your controllers, and they will display intelligently
and elegantly into your views.
Simply use an @include statement in your main template/layout file to this partial so that
this partial is included with every view. The rest can be set once and forgotten.