Skip to content

Instantly share code, notes, and snippets.

Dalibor Mesarić dalibormesaric

Block or report user

Report or block dalibormesaric

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SQL_TRANSACTION.sql
BEGIN TRANSACTION
BEGIN TRY
--
--ROLLBACK
COMMIT
TRANSACTION
END TRY
@dalibormesaric
dalibormesaric / setup
Created Mar 25, 2015
Check for git, node, bower and install packages - CLI beginner friendly
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
@dalibormesaric
dalibormesaric / hyphens-camel-case.js
Last active Dec 30, 2017
Convert hyphens to camel case and convert camel case to hyphens
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"
You can’t perform that action at this time.