Skip to content

Instantly share code, notes, and snippets.

@nerdyworm
nerdyworm / rename.sh
Created July 30, 2016 17:40
rename a phoenix project
#!/bin/bash
set -e
CURRENT_NAME="CurentName"
CURRENT_OTP="current_name"
NEW_NAME="NewName"
NEW_OTP="new_name"
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active July 12, 2024 11:15
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@gkatsev
gkatsev / strictMode.md
Last active December 12, 2015 00:39
An overview and features of strict mode

Strict Mode

Overview

Strict mode is an opt-in mode for JavaScript that fixes, disables, and changes some of the most problematic features in the language.

Strict mode is invoked with "use strict"; statement at the top of the current scope. So, it works both in functions and in files. It is better to only ever specifiy strict mode inside of functions because this simplifies concatenating