I hereby claim:
- I am mrdesjardins on github.
- I am mrdesjardins (https://keybase.io/mrdesjardins) on keybase.
- I have a public key whose fingerprint is F2EB 8867 97B1 0BD7 DA19 8530 3E44 DA1D 4F30 817B
To claim this, I am signing this object:
| "newrc": { | |
| "prefix": ["newrc", "new-react-component"], | |
| "body": ["import style from \"./${1/(.*)/${1:/capitalize}/}.module.css\";", | |
| "export const ${1/(.*)/${1:/capitalize}/} = () => {", | |
| " return <div className={style.${1/(.*)/${1:/capitalize}/}}>${1/(.*)/${1:/capitalize}/}</div>;", | |
| "};"] | |
| "description": "Create a new React component with its CSS module file import" | |
| } |
| # MDX validations | |
| ## Title Format with quote | |
| title: "(.*)(\\.*)" | |
| ## Ensure date is yyyy-mm-dd | |
| (date: )(?!("((20[012]\d|19\d\d)|(1\d|2[0123]))-((0[0-9])|(1[012]))-((0[1-9])|([12][0-9])|(3[01]))")) | |
| ## Scan to see if we have all the code block starting a line with tripple ` | |
| ^(?!```).+(```)+.+$ |
| import { useEffect, useRef } from "react"; | |
| export interface useIntervalProps { | |
| callback: () => void; | |
| intervalMs: number; | |
| /** | |
| * Option to have an initial call to the callback immediately once the hook is created and | |
| * then at each interval. When not defined or false, the first callback call is delayed until |
| import * as React from "react"; | |
| export function withLog<P>(Comp: React.ComponentClass<P> | React.StatelessComponent<P>): React.ComponentClass<P> { | |
| return class WrappedComponent extends React.Component<P, {}> { | |
| public render(): JSX.Element { | |
| console.log("render"); | |
| return <Comp {...this.props} />; | |
| } | |
| public componentDidMount() { | |
| console.log("componentDidMount"); |
| F1:: | |
| Loop, parse, clipboard | |
| { | |
| SendRaw, %A_Loopfield% | |
| Sleep, 40 | |
| } | |
| return |
| <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <ItemDefinitionGroup> | |
| <Reference> | |
| <Private>False</Private> | |
| </Reference> | |
| <ProjectReference> | |
| <Private>False</Private> | |
| </ProjectReference> | |
| </ItemDefinitionGroup> | |
| </Project> |
I hereby claim:
To claim this, I am signing this object: