Skip to content

Instantly share code, notes, and snippets.

💭 & Level Up Tutorials

Scott Tolinski stolinski

💭 & Level Up Tutorials
View GitHub Profile
stolinski / mongoose+5.11.8.patch
Created Feb 2, 2021
Patch to fix mongoose for esbuild
View mongoose+5.11.8.patch
diff --git a/node_modules/mongoose/lib/index.js b/node_modules/mongoose/lib/index.js
index 1425cfa..631eba5 100644
--- a/node_modules/mongoose/lib/index.js
+++ b/node_modules/mongoose/lib/index.js
@@ -732,19 +732,19 @@ Mongoose.prototype.connections;
* Driver dependent APIs
-const driver = global.MONGOOSE_DRIVER_PATH || './drivers/node-mongodb-native';
View gist:455135717c9e146f83955533860d58b0
This Freelance Contract (this “Contract” or this “Freelance Contract”), is entered into and made effective as of [date] (the “Effective Date”), by and between [customer] (“Customer”), and [freelancer] (“Freelancer”).
Customer has a need for [services] and
Freelancer has an interest in performing such services for Customer; and
The parties wish to set forth the terms and conditions upon which such services will be provided to Customer;
NOW THEREFORE, in consideration of the foregoing, and the mutual promises herein contained, the parties hereby agree as follows:
Terms and Conditions
stolinski / style.css
Last active Aug 5, 2020
View style.css
@import url("|Work+Sans:400");
:root {
/* Define Colors as colors */
--green: #00ebc7;
--red: #ff5470;
--yellow: #fde24f;
--black: #1b2d45;
--darkBlue: #00214d;
--darkGrey: #222;
stolinski / Example.tsx
Last active Mar 31, 2021
Route Transitions with Framer Motion
View Example.tsx
const FakeComponent = () => {
return (
<AnimatedRoutes exitBeforeEnter initial={false}>
<RouteTransition exact path="/some-route">
<NewUsers />
<RouteTransition exact path="/yo" >
<Users />
View providerCompose.js
function ProviderComposer({ contexts, children }) {
return contexts.reduceRight(
(kids, parent) =>
React.cloneElement(parent, {
children: kids,
stolinski / Images.js
Created Apr 19, 2019
Images Array For useSprings
View Images.js
const pages = [
stolinski / Waypoints.js
Created Apr 18, 2019
Waypoints Component For Animating React
View Waypoints.js
import React from 'react'
const Waypoints = () => {
return (
<div className="waypoints">
Lorem ipsum dolor amet poutine pitchfork tattooed venmo, heirloom cliche chartreuse gentrify mumblecore hammock single-origin coffee banh mi. Sartorial unicorn 90's edison bulb iPhone. Leggings pickled brunch neutra tousled. Occupy fixie affogato pinterest vaporware aesthetic, tbh subway tile hammock next level prism vape lomo taiyaki kale chips. Jianbing knausgaard taxidermy squid artisan thundercats, gochujang subway tile air plant taiyaki master cleanse cray.
Pug godard pour-over 90's direct trade, PBR&B +1 next level organic edison bulb quinoa DIY. Taiyaki sriracha unicorn, cronut taxidermy chicharrones four dollar toast keytar cold-pressed raclette yuccie cray iceland. Roof party knausgaard neutra plaid, pork belly chambray banh mi chia. Blue bottle narwhal iceland health goth cornhole fam humblebrag flannel pitchfork pickled.
stolinski / useMeasure.js
Created Apr 18, 2019
useMeasure - taken from React Spring example
View useMeasure.js
import { useRef, useState, useEffect } from 'react'
import ResizeObserver from 'resize-observer-polyfill'
export default function useMeasure() {
const ref = useRef()
const [bounds, set] = useState({ left: 0, top: 0, width: 0, height: 0 })
const [ro] = useState(() => new ResizeObserver(([entry]) => set(entry.contentRect)))
useEffect(() => (ro.observe(ref.current), ro.disconnect), [])
return [{ ref }, bounds]
stolinski / Routes.js
Last active Feb 26, 2020
React Spring React Router Starter
View Routes.js
import React from 'react';
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom';
const Routes = () => {
return (
<ul className="router-nav">
<NavLink to="/">One</NavLink>
<NavLink to="/two">Two</NavLink>
<NavLink to="/three">Three</NavLink>
stolinski / Toggle.js
Created Feb 19, 2019
Refactor For Hooks Course
View Toggle.js
import React, { Component } from "react";
export default class Refactor extends Component {
state = {
isToggled: false
toggle = () => {
this.setState(state => {
return { isToggled: !state.isToggled };