Skip to content

Instantly share code, notes, and snippets.

View jrolfs's full-sized avatar

Jamie Rolfs jrolfs

View GitHub Profile
@tamakiii
tamakiii / .zshrc
Last active August 19, 2018 13:23
Fix "(eval):setopt:3: no such option: NO_warnnestedvar" with Zsh
We couldn’t find that file to show.
import { useEffect, useLayoutEffect } from 'react';
// eslint-disable-next-line max-len
// See https://github.com/reduxjs/react-redux/blob/316467a/src/hooks/useSelector.js#L6-L15
export const useIsomorphicLayoutEffect =
typeof window !== 'undefined' ? useLayoutEffect : useEffect;
export const useServerNoopLayoutEffect =
typeof window !== 'undefined' ? useLayoutEffect : () => ({});
@AndrewSouthpaw
AndrewSouthpaw / calendarCopy.js
Last active March 24, 2026 20:19
Google Apps script to copy personal events and block those times in your work calendar.
// *******************
// Contributors:
// - Andrew Smith (@AndrewSouthpaw)
// - Shaun Mosley (@Shaunm44)
// *******************
// This setup will allow you to synchronize personal events from one calendar (the "secondary calendar")
// to another calendar, e.g. work (the "primary calendar"), but obfuscate the details. Then your coworkers
// know when you're busy but don't get to see the personal details.
//
@seshness
seshness / SyncEvents.gs
Created April 12, 2022 07:31
Syncs your personal calendar with your work calendar as 'busy' events
/**
* Syncs your personal calendar with your work calendar as 'busy' events.
*/
// WARNING: This script has the potential to delete events! Audit the code and run with care.
// The script *should* only delete events it has previously created, but bugs are possible!
// How to use
// ==========
// 1. Share your personal calendar with your work account using the free/busy option.
@junosuarez
junosuarez / gitstatus-prompt.zsh
Created October 28, 2022 07:46
starship + gitstatusd
#!/bin/zsh
# include this file in your shell config
autoload -Uz add-zsh-hook
# this file comes from installing https://github.com/romkatv/gitstatus
SOURCE "${HOMEBREW_PREFIX:-/usr/local}/opt/gitstatus/gitstatus.plugin.zsh" || return
gitstatusd_instance='GSD'
# the following are a mystery - why do they define the fn names with $1?