Skip to content

Instantly share code, notes, and snippets.

View iranjunior's full-sized avatar
🖥️
Coding

Iran Junior iranjunior

🖥️
Coding
View GitHub Profile
@bernardomafra
bernardomafra / snippets.json
Last active January 25, 2022 00:25
Snippets for Visual Studio Code
{
"Custom Log": {
"scope": "javascript,typescript",
"prefix": "log",
"body": ["console.log('$1', $1);"],
"description": "Generate console.log method with cursor ready to type on key and value"
},
"ReactComponentTsx": {
"scope": "typescript,typescriptreact",
@fokusferit
fokusferit / enzyme_render_diffs.md
Last active September 19, 2025 19:40
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • render
@subfuzion
subfuzion / curl.md
Last active October 11, 2025 00:58
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@sindresorhus
sindresorhus / post-merge
Created September 6, 2013 15:46
Git hook to install npm dependencies after a `git pull`. Run `chmod +x post-merge` and put it in `.git/hooks/`. Though could really do whatever.
#!/bin/sh
npm install