View SQL_TRANSACTION.sql
BEGIN TRANSACTION
BEGIN TRY
--
--ROLLBACK
COMMIT
TRANSACTION
END TRY
View setup
@echo off
:: Check if git is installed
@ECHO Looking for git ...
call git --version >nul 2>nul
IF ERRORLEVEL 1 (
@ECHO Please install git from http://git-scm.com/downloads
goto :end_batch
)
call git --version
:: Check for node.js
View hyphens-camel-case.js
("thisIsTest").replace(/([a-z][A-Z])/g, function (g) { return g[0] + '-' + g[1].toLowerCase() });
"this-is-test"
("this-is-test").replace(/-([a-z])/g, function (g) { return g[1].toUpperCase(); });
"thisIsTest"