Skip to content

Instantly share code, notes, and snippets.

View acatl's full-sized avatar

Acatl Pacheco acatl

  • ViacomCBS
  • New York, NY
View GitHub Profile
@acatl
acatl / feature-toggles.json
Created August 3, 2017 01:57
feature-toggles
{
"showExclamation": true
}
{
"title": "Hello World"
}
{
"title": "Hello Mundo"
}
@acatl
acatl / snippets.js
Last active March 29, 2018 18:12
VSCode snippets
{
/*
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
@acatl
acatl / foo.test.js
Last active January 5, 2023 17:50
jest mock debug.js module
/* eslint-env jest */
const mockDebug = jest.fn()
jest.mock('debug', () => {
return () => mockDebug
})
const foo = require('./foo')
describe('foo.bar', () => {
it('should testName', () => {