Skip to content

Instantly share code, notes, and snippets.

View unicornware's full-sized avatar
🔥
getting busy with the keyboard

Lex unicornware

🔥
getting busy with the keyboard
View GitHub Profile
@unicornware
unicornware / History|-102d72a1|entries.json
Last active May 4, 2022 02:51
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/lex/Projects/UNICORNWARE/rithm-cs-fundamentals/src/02/01-searching/exercise/binary-search-recursive.ts","entries":[{"id":"KcUa.ts","timestamp":1648362108795},{"id":"eVMZ.ts","timestamp":1648362355092},{"id":"2PDk.ts","source":"searchReplace.source","timestamp":1648365918916},{"id":"Z7Qr.ts","source":"searchReplace.source","timestamp":1648365940635},{"id":"HbtR.ts","source":"moved.source","timestamp":1648365954136},{"id":"53rM.ts","source":"moved.source","timestamp":1648604398033},{"id":"LWYB.ts","source":"Workspace Edit","timestamp":1648604418822}]}
@unicornware
unicornware / rdb.controller.js
Last active September 22, 2020 05:59
Firebase Realtime Database Controller
// Packages
const { BadRequest, NotFound } = require('@feathersjs/errors')
/**
* Class for interacting with the Firebase Realtime Database.
*
* @todo Handle realtime changes
*
* @class Database
* @module database
@unicornware
unicornware / pull_request_template.md
Last active October 11, 2021 06:02
Pull Request Template

Description

Tests

@unicornware
unicornware / .gitconfig
Last active May 4, 2022 03:24
Git Configuration
# Git Configuration
# See: http://michaelwales.com/articles/make-gitconfig-work-for-you/
# Git Helpers
[alias]
# Git add and commit - all in one step
ac = "!f() { git add .; git cm \"$@\"; }; f"
# Add new git remote
ar = "!f() { git remote add \"$0\" \"$1\"; }; f"
/**
* @file Type Definitions - GlobalEventHandlers mixin
* @author Lexus Drumgold <lex@flexdevelopment.llc>
* @see {@link https://developer.mozilla.org/docs/Web/API/GlobalEventHandlers}
*/
/**
* The GlobalEventHandlers mixin describes the event handlers common to several
* interfaces like HTMLElement, Document, or Window.
*
# PATH
#
# $HOME/node_modules/.bin
# $PWD/node_modules/.bin
# curl
# homebrew
# homebrew's "sbin"
# java
# npm
# php
@unicornware
unicornware / sass-options.js
Last active August 10, 2020 21:10
Sass Loader Options
const path = require('path')
const implementation = require('sass')
/**
* @file Webpack Sass Loader Options
* @see {@link https://webpack.js.org/loaders/sass-loader/}
*/
module.exports = {
/**
@unicornware
unicornware / declarations.d.ts
Created September 22, 2020 05:47
Custom React Hooks
import {
AriaAttributes,
CSSProperties,
DOMAttributes,
RefAttributes
} from 'react'
import { ContainerProps, IconProps } from './atoms'
/**
* Aria attributes and event handlers.
@unicornware
unicornware / next.config.js
Last active October 31, 2020 18:35
Firebase x Next.js Configuration
const merge = require('lodash').merge
/**
* @file Next.js Configuration
* @see https://firebase.google.com/docs/web/setup
* @see https://nextjs.org/docs/api-reference/next.config.js/introduction
*/
const {
FIREBASE_API_KEY,
@unicornware
unicornware / mdx-scoped-runtime.d.ts
Created November 3, 2020 19:08
mdx-scoped-runtime declaration file
/// <reference types='mdx-js__react' />
declare module 'mdx-scoped-runtime' {
import { FC, ReactNode } from 'react'
type AnyObject = Record<string, any>
interface MDXProps extends MDXProviderProps {
children?: ReactNode
components?: MDXProviderComponents