-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
This file contains 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
# Switching projects like mad? | |
# t: start or restore a tmux session named after your current working directory | |
# | |
# e.g. calling t in /home/project/awesome_project will reattach the tmux session named | |
# awesome_project or create a new one | |
t() { tmux attach-session -t $(pwd | awk -F/ '{print $NF}') || tmux new-session -s $(pwd | awk -F/ '{print $NF}') ; } |
This file contains 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
# This is a simple demonstration on how to stream | |
# audio from microphone and then extract the pitch | |
# and volume directly with help of PyAudio and Aubio | |
# Python libraries. The PyAudio is used to interface | |
# the computer microphone. While the Aubio is used as | |
# a pitch detection object. There is also NumPy | |
# as well to convert format between PyAudio into | |
# the Aubio. | |
import aubio | |
import numpy as num |
This file contains 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
/** | |
Adjust SPACE_ID to point to your components.*.json file. | |
Then run the script with `node generate-ts.js` | |
*/ | |
// adjust path to a different location/name | |
const pathToTsFile = 'src/typings/generated/components-schema.d.ts' | |
// adjust space id of the components filename |
This file contains 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
// @ts-ignore | |
import GatsbyParser from "gatsby/dist/query/file-parser"; | |
import path from "path"; | |
import glob from "glob"; | |
/** | |
* Collect all graphql fragments from a directory | |
* @see https://github.com/gatsbyjs/gatsby/issues/12155#issuecomment-618424527 | |
*/ | |
export const collectGraphQLFragments = async ( |
This file contains 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
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |
This file contains 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} from 'react' | |
import {fireEvent, within} from '@storybook/testing-library' | |
import userEvent from '@testing-library/user-event' | |
export const presentInteraction = storyFn => { | |
return ( | |
<div> | |
<PresentInteraction/> | |
{storyFn()} |
The MDX team has just released the long-awaited MDXv2 with dramatically better syntax and performance. It's a huge win for the community! 🎉
Now I'm excited to announce experimental support in Storybook 6.5. This gist summarizes how to try it out, how to report bugs, and known gotchas that you might encounter along the way.
Since MDXv2 is a breaking change, it's an opt-in feature in Storybook 6.5.