Skip to content

Instantly share code, notes, and snippets.

View ssx's full-sized avatar

Scott Robinson ssx

View GitHub Profile
diff --git a/lib/web/jquery/bootstrap/collapse.js b/lib/web/jquery/bootstrap/collapse.js
index 95e28cec248..5a978bcfafb 100644
--- a/lib/web/jquery/bootstrap/collapse.js
+++ b/lib/web/jquery/bootstrap/collapse.js
@@ -32,7 +32,7 @@ define([
const VERSION = '5.1.3'
const NAME = 'collapse'
const DATA_KEY = 'bs.collapse'
- const EVENT_KEY = `.${DATA_KEY}`
+ const EVENT_KEY = `.${DATA_KEY}`;
@ssx
ssx / pre-commit
Last active August 13, 2019 19:02
Pre-commit hook for git with phpcs and phpcbf (auto-correct obvious violations)
#!/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"
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 14:56
CS Cart Valet Driver
<?php
class CsCartValetDriver extends ValetDriver
{
const INSTALL_PATHS = ['/install/', '/install', '/install/index.php'];
const INSTALL_CONTROLLER = '/install/index.php';
protected $admin;
protected $customer;
cat /dev/null > ~/.bash_history && history -c && exit
<?php
Route::get('/', function()
{
// Return our basic form view
return View::make("form");
});
Route::post('/', function()
{
// Build the input for our validation
<!doctype html>
<html lang="en">
<head>
<title>File Upload</title>
</head>
<body>
@if (Session::has("message"))
{{ Session::get("message") }}
@endif
<hr />
@ssx
ssx / twitter_keyboard_shortcuts.txt
Created December 29, 2018 10:29
Twitter Keyboard Shortcuts
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
<?php
namespace App\Nova;
use App\Nova\Actions\ExportOrders;
class Order extends Resource
{
// snipped..