Skip to content

Instantly share code, notes, and snippets.

@klimaye
klimaye / .gitconfig
Created December 18, 2014 15:34
my .gitconfig
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
@klimaye
klimaye / itemAtIndexInASplitString
Created December 27, 2013 13:56
sql scaler function to return an item at a specific index in a split string. Was useful to me in a select clause parsing a value like Age_0_14
CREATE FUNCTION dbo.itemAtIndexInASplitString( @stringToSplit VARCHAR(MAX), @delimiter VARCHAR(5), @indexToReturn int)
RETURNS
varchar(max)
AS
BEGIN
DECLARE @returnList TABLE ([ID] int, [Name] [nvarchar] (500))
DECLARE @name NVARCHAR(255)
DECLARE @pos INT
DECLARE @index INT
DECLARE @return_value varchar(max)
@klimaye
klimaye / ongoing_git_setup
Created August 11, 2013 12:41
ongoing git setup
#under ~/.profile
alias gst='git status'
#on command prompt for colors
git config --global color.ui true
#more to come.