Skip to content

Instantly share code, notes, and snippets.

View emjayess's full-sized avatar
💭
🪞 mirroring repos from gitlab

Matthew J. Sorenson emjayess

💭
🪞 mirroring repos from gitlab
View GitHub Profile
@joeskeen
joeskeen / ASCII-Webcam.html
Created November 15, 2022 23:38
A vanilla HTML/CSS/JS implementation of rendering your webcam as ASCII art on a web page (and ability to turn that into a virtual webcam for video calls)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ASCII Webcam</title>
<style type="text/css">
html,
body {

finally-polyfill

A tiny ~150-byte polyfill for Promise.prototype.finally.

Useful for browsers that support Promise but not the .finally() method.

Usage

npm install finally-polyfill

@emjayess
emjayess / git_branching_model_considered.md
Last active February 17, 2021 16:09
A Git branching model considered...

Feature development - proposed branching model (graph)

Take a feature: like 'OBH'

__ master ______________________________________.___________________
  \                                            / (pull request ^)
   \__ develop ____________________________.__/_____________________
      \                                   / (pull request ^)
       \__ develop/obh/master _[._._._.]_/                          
@mwisner
mwisner / vapor.yml
Created October 16, 2019 17:24
Laravel Backpack Vapor Guide
build:
- 'composer install --no-dev --classmap-authoritative'
- 'php artisan event:cache'
- 'sh ../../../utils/vapor_build_purge.sh'

Modifying Laravel's default JSON API Resources meta section

When implementing a JSON API, you may be required to modify Laravel's standard JSON API Resource meta section, in particular pagination.

Laravel's default JSON pagination looks like this:

"links":{
    "first": "http://example.com/pagination?page=1",
    "last": "http://example.com/pagination?page=1",
    "prev": null,
@aeschright
aeschright / npm-strike.md
Last active September 8, 2021 16:32
A note about npm cli work status

When will npm@6.9.1 be released (and other PRs merged?)

On March 22, npm fired several members of the open source and community team for discussing workplace conditions and other labor organizing activities. As a result, core employee contributors to the npm cli were removed from the project, and others have left in solidarity or put their work on hold.

Multiple claims were filed with the NLRB on this matter. The NLRB has investigated and found sufficient evidence of validity to proceed. The National Labor Relations Act of 1935 protects US employees' right to engage in discussions of workplace concerns without threat of retaliation -- and awareness of the importance of how we treat each other is something I valued so much in collaborating with the cli team. How can we work together if we aren't free to discuss what we need?

It's disappointing for all of us to find the work we were doing interrup

@laravel-shift
laravel-shift / .php-cs-fixer.php
Last active April 9, 2024 14:08
PHP CS Fixer - Laravel Coding Style Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
@blakethepatton
blakethepatton / Description.md
Last active November 7, 2023 09:37
Getting Mailhog running on a dev server (nginx, letsencrypt, ssl, ubuntu)

Get it running as a service

wget https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64

mv MailHog_linux_amd64 mailhog

chmod +x mailhog

sudo vi /etc/systemd/system/mailhog.service

[{"111110":"111120","Soybean Farming":"Oilseed (except Soybean) Farming"},
{"111110":"111130","Soybean Farming":"Dry Pea and Bean Farming"},
{"111110":"111140","Soybean Farming":"Wheat Farming"},
{"111110":"111150","Soybean Farming":"Corn Farming"},
{"111110":"111160","Soybean Farming":"Rice Farming"},
{"111110":"111191","Soybean Farming":"Oilseed and Grain Combination Farming"},
{"111110":"111199","Soybean Farming":"All Other Grain Farming"},
{"111110":"111211","Soybean Farming":"Potato Farming"},
{"111110":"111219","Soybean Farming":"Other Vegetable (except Potato) and Melon Farming"},
{"111110":"111310","Soybean Farming":"Orange Groves"},
@jimmywarting
jimmywarting / readme.md
Last active July 4, 2024 11:58
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers