Skip to content

Instantly share code, notes, and snippets.

{
"Log out a JSON object": {
"scope": "javascript",
"prefix": "logj",
"body": [
"console.log(JSON.stringify($1, null, 2));"
],
"description": "Log out prettied JSON"
}
}
{
"Jest test case": {
"scope": "javascript",
"prefix": "test",
"body": [
"test('$1', (done) => {",
" // Arrange",
" $2",
"",
" // Act",
{
"Describe jest test block": {
"scope": "javascript",
"prefix": "describe",
"body": [
"describe('$1', () => {",
" beforeAll((done) => {",
" return done();",
" })",
"",
@itaber
itaber / iffe.code-snippets
Last active December 30, 2019 03:48
VSC Snipped to create an Immediately Invoked Function Expression
{
"IFFE": {
"scope": "javascript",
"prefix": "iffe",
"body": [
"(() => {",
" $1",
"})();"
],
"description": "Immediately Invoked Function Expression"

Keybase proof

I hereby claim:

  • I am itaber on github.
  • I am xoarium (https://keybase.io/xoarium) on keybase.
  • I have a public key ASD-C_FY1IC5gJFO5fMfHbPlEDXnR_ApQFdkXUwk5ydqrQo

To claim this, I am signing this object: