Skip to content
View benhorst's full-sized avatar

Highlights

  • Pro
Block or Report

Block or report benhorst

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. benhorst-rc benhorst-rc Public

    Shell shortcuts

    Shell

  2. pre-push pre-push
    1
    #!/bin/bash
    2
    
                  
    3
    master="refs/heads/master"
    4
    
                  
    5
    read local_ref local_sha remote_ref remote_sha
  3. simple localstorage sync script with... simple localstorage sync script with comments and notes
    1
    import { useEffect, useState } from "react";
    2
    
                  
    3
    // a quick example of "enhancing" the localstorage sync
    4
    // in order to use it like a specialized store.
    5
    // you're obviously going to get worse perf than a regular React.createContext, but you get some benefits.
  4. Simple KeyStore React Context (and p... Simple KeyStore React Context (and provider)
    1
    import { createContext, useReducer } from 'react';
    2
    
                  
    3
    const reducer = (initialValue) => (state, { type, key, value }) => {
    4
        switch (type) {
    5
            case 'SET_KEY':