Skip to content

Instantly share code, notes, and snippets.

View JadoJodo's full-sized avatar

Jordan "Jado" Finnigan JadoJodo

View GitHub Profile
@JadoJodo
JadoJodo / gist:7a1f507bbf4b2fa2438cea227ab9da90
Created August 2, 2023 17:07 — forked from HunterMcGrew/gist:114ecb72369ac825cfa334157f71395a
Marquee Style Infinite Side Scrolling HTML
<div id="scrollerContainer" style="overflow: hidden; display: flex;">
<!-- fix all the images & images sources in this div imageScoller below -->
<div class="imageScroller" style="flex-shrink: 0; display: inline-flex; justify-content: space-around; min-width: 100%; gap: 1rem;">
<img src="https://kairos.lndo.site/wp-content/uploads/2023/08/482.webp" class="scrollingImage" />
<img src="https://kairos.lndo.site/wp-content/uploads/2023/08/395.webp" class="scrollingImage" />
<img src="https://kairos.lndo.site/wp-content/uploads/2023/08/CP770-Cotton-Picker_r4f080304-min.jpg" class="scrollingImage" />
<img src="https://kairos.lndo.site/wp-content/uploads/2023/08/CP770-Cotton-Picker_r4f080383-min.jpg" class="scrollingImage" />
<img src="https://kairos.lndo.site/wp-content/uploads/2023/08/X950-Combine-C16F-Corn_r4f090634-min.jpg" class="scrollingImage" />
@JadoJodo
JadoJodo / gist:1de26745ef108a3ad6497b0684d409a2
Created April 10, 2017 19:40
Toggle Hidden Files In Open File Dialogue
SHIFT + CMD + .
Intro
First off you have a string. JSON is not an array, an object, or a data structure. JSON is a text-based serialization format - so a fancy string, but still just a string. Decode it in PHP by using json_decode().
$data = json_decode($json);
Therein you might find:
scalars: strings, ints, floats, and bools
nulls (a special type of its own)
compound types: objects and arrays.
@JadoJodo
JadoJodo / generate_laravel_password.php
Created March 1, 2017 19:45
Generate a random, cryptographically secure password in Laravel
$password = Hash::make(random_bytes($length));
@JadoJodo
JadoJodo / clear_laravel_cache
Created February 17, 2017 17:39
Clear Laravel Cache
php artisan cache:clear
@JadoJodo
JadoJodo / file1.js
Created January 23, 2017 20:00
Ever need to fill local storage with junk to simulate running out of memory? Me neither until today, but here's a snippet if you ever need to. Just paste it in the console and it'll fill whatever space is left. - Credit: https://github.com/Zmixon
(function() {
var nbBytes = 32768,
oneByte = 'x',
totalBytesInserted = 0;
function bump(input) {
if (!input) input = 0;
while (window.localStorage[input] !== undefined) {
input++;