- Install:
- jest:
npm install --save-dev jest
- ts-jest:
npm install --save-dev ts-jest @types/jest
- Modify package.json
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
interface MyCompProps { | |
model: Model; | |
modParams: ModParams; | |
} | |
interface MyCompState { | |
derived1?: Derived1; | |
derived2?: Derived2; | |
initialized: boolean; |
vsix-bookmarklet
, create a bookmark in your browser.*.vsix
.I had a problem with go get
using private repository on gitlab from our company.
I lost a few minutes trying to find a solution.... and I did find one:
You need to get a private token at:
https://gitlab.mycompany.com/profile/account
Configure you git to add extra header with your private token:
$ git config --global http.extraheader "PRIVATE-TOKEN: YOUR_PRIVATE_TOKEN"
// Mixin like functionality | |
const textInput = props => ` | |
color: ${props.error ? color.white : color.base}; | |
background-color: ${props.error ? color.alert : color.white}; | |
`; | |
export const Input = styled.input` | |
${textInput} | |
`; |
// Add on element with overflow | |
-webkit-mask-image: -webkit-radial-gradient(white, black); |
- Open Automator | |
- File -> New -> Service | |
- Change "Service Receives" to "files or folders" in "Finder" | |
- Add a "Run Shell Script" action | |
- Change "Pass input" to "as arguments" | |
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*" | |
- Save it as something like "Open in Visual Studio Code" |