Skip to content

Instantly share code, notes, and snippets.

Jesse Leite jesseleite

Block or report user

Report or block jesseleite

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
@jesseleite
jesseleite / SelectModifier.php
Created Feb 21, 2019
Statamic v2 array batch addon idea
View SelectModifier.php
<?php
namespace Statamic\Addons\ArrayBatch;
use Statamic\Extend\Modifier;
class SelectModifier extends Modifier
{
/**
* Modify a value
View tooltip.vue
<template>
<div class="tooltip-component" @mouseenter="show" @mouseleave="hide">
<div class="tooltip" :class="{ visible: isVisible }">
<span class="tooltip-text">{{ text }}</span>
</div>
<slot></slot>
</div>
</template>
<script>
@jesseleite
jesseleite / # php@7.1 - 2018-03-31_21-54-39.txt
Created Apr 2, 2018
php@7.1 on macOS 10.13.3 - Homebrew build logs
View # php@7.1 - 2018-03-31_21-54-39.txt
Homebrew build logs for php@7.1 on macOS 10.13.3
Build date: 2018-03-31 21:54:39
@jesseleite
jesseleite / sendString.js
Last active Mar 26, 2018
Digital Ocean console sendString() for pasting
View sendString.js
var sendString = (function(rfb, force, sendDelay) {
sendDelay = sendDelay || 25;
var _q = [];
var _qStart = function() {
var chr = _q.shift();
if (chr) {
rfb.sendKey(chr);
setTimeout(_qStart, sendDelay);
}
};
View gist:fe4996fee6de1c865b76d9aae0734012
-- The following is a script to bring back VI mode in Sierra.
-- See: https://gist.github.com/juanmiret/81a21a5ae8d6b6061b0a4e72a8be61b2
local module = {}
module.debugging = false -- whether to print status updates
local eventtap = require "hs.eventtap"
local event = eventtap.event
local inspect = require "hs.inspect"
View Listeners.Cascade.php
<?php
namespace App\DB\Listeners;
class Cascade
{
/**
* Trigger cascade function on Eloquent Model if defined in softdeletes config.
* @param object $model Eloquent Model
@jesseleite
jesseleite / swap.sh
Created Apr 9, 2016
1G Swap Forge Script/Recipe
View swap.sh
if [ -f /swapfile ]; then
echo "Swapfile already exists."
exit 1
fi
fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab'
@jesseleite
jesseleite / job.md
Last active Mar 12, 2016
RoomRoster Intermediate to Senior Laravel Developer
View job.md

Intermediate to Senior Laravel Developer

Who we are

RoomRoster is looking for full-time intermediate to senior Laravel developers to work on our product team. With over 20 years experience in sports event management, and a focus on the youth sport tournament market, RoomRoster was founded with one simple objective:

To create a valuable system for tournament directors to help streamline their event while delivering a consistent experience to their participants.

Must be willing to work on-site in London, Ontario, Canada.

@jesseleite
jesseleite / AuthorizesRequestsWithoutUser.php
Last active Mar 5, 2016
Authorize without authenticated user.
View AuthorizesRequestsWithoutUser.php
<?php
namespace App\Helpers;
use Illuminate\Contracts\Auth\Access\Gate;
use Illuminate\Auth\Access\AuthorizationException;
trait AuthorizesRequestsWithoutUser
{
/**
View gist:5a3fbae1ebc11ef70b8d
for voice in Whisper; do say "Every breath you take, every move you make, every bond you break, every step you take, I'll be watching you. I'll be watching you. I'll be watching you." -v ${voice}; done
You can’t perform that action at this time.