This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 : () => ({}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ******************* | |
| // 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. | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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? |
OlderNewer