Skip to content

Instantly share code, notes, and snippets.

Scott Robinson ssx

Block or report user

Report or block ssx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ssx
ssx / pre-commit
Last active Aug 13, 2019 — forked from fdemiramon/pre-commit
Pre-commit hook for git with phpcs and phpcbf (auto-correct obvious violations)
View pre-commit
#!/bin/sh
PHPCS=`which phpcs`
PHPCBF=`which phpcbf`
if [ -z $PHPCS ] || [ -z $PHPCBF ]
then
printf "\n\e[38;5;255,255,255m"
printf "💥 Error: The required tools 'phpcs' and/or 'phpcbf' could not be found in your path.\n\n"
printf "You can install both tools globally by running:\n\n"
View qb-api-query.txt
Quickbooks User
|
|------------ Company 1
| |----------- Customer 1
| |----------- Customer 2
| |----------- Customer 1
|------------ Company 2
| |----------- Customer 4
| |----------- Customer 5
|------------ Acme Ltd
@ssx
ssx / CsCartValetDriver.php
Created May 22, 2019
CS Cart Valet Driver
View CsCartValetDriver.php
<?php
class CsCartValetDriver extends ValetDriver
{
const INSTALL_PATHS = ['/install/', '/install', '/install/index.php'];
const INSTALL_CONTROLLER = '/install/index.php';
protected $admin;
protected $customer;
View shell.sh
cat /dev/null > ~/.bash_history && history -c && exit
View Controller.php
<?php
Route::get('/', function()
{
// Return our basic form view
return View::make("form");
});
Route::post('/', function()
{
// Build the input for our validation
View form.blade.php
<!doctype html>
<html lang="en">
<head>
<title>File Upload</title>
</head>
<body>
@if (Session::has("message"))
{{ Session::get("message") }}
@endif
<hr />
View laravel-route-active-links.html
@ssx
ssx / twitter_keyboard_shortcuts.txt
Created Dec 29, 2018
Twitter Keyboard Shortcuts
View twitter_keyboard_shortcuts.txt
n - New Tweet gh - Home
l - Like go - Moments
r - Reply gn - Notifications
t - Retweet gr - Mentions
m - Direct message gp - Profile
u - Mute User gl - Likes
b - Block User gi - Lists
Enter - Open Tweet details gm - Messages
o - Expand photo gs - Settings
/ - Search gu - Go to user
View Order.php
<?php
namespace App\Nova;
use App\Nova\Actions\ExportOrders;
class Order extends Resource
{
// snipped..
View ExportOrders.php
<?php
namespace App\Nova\Actions;
use App\Models\Order;
use Maatwebsite\Excel\Concerns\WithHeadings;
use Maatwebsite\Excel\Concerns\WithMapping;
use Maatwebsite\LaravelNovaExcel\Actions\DownloadExcel;
use PhpOffice\PhpSpreadsheet\Shared\Date;
You can’t perform that action at this time.