Skip to content

Instantly share code, notes, and snippets.

if exists (select * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = 'WBC_UserProfileMap' and COLUMN_NAME = 'InitIndicator')
begin
update
WBC_UserProfileMap
set
InitIndicator = 'SELF_REGISTERED'
where
CISKey = 'TestUser80';
update
@mnaoumov
mnaoumov / gist:4108955
Created November 19, 2012 04:26 — forked from anvaka/gist:4108943
BDD syntax example
[Feature]
public class Tool_usage
{
[Scenario]
public void Use_new_tool()
{
// Can you do this?
Tool tool = default(Tool);
BDD(
protected void {0}_UserActivityEvent(object sender, UserActivityEventArgs e)
{{
switch (e.UserActivityEventType)
{{
{18}
}}
}}
vs
string testString = @"
FUNCTION ""Timer_€_OC"" : Void
...
END_FUNCTION";
var functionRegex = new Regex(@"FUNCTION\s*\""(?<Name>[^\""]+)\""\s*\:\s*(?<Type>[\S]+)");
var match = functionRegex.Match(testString);
Debug.Assert(match.Groups["Name"].Value == "Timer_€_OC");
C:\dev> $env:GIT_TRACE=1
C:\dev> $env:GIT_CURL_VERBOSE=1
C:\dev> git clone -v git@github.com:gitextensions/gitextensions.git
trace: built-in: git 'clone' '-v' 'git@github.com:gitextensions/gitextensions.git'
Cloning into 'gitextensions'...
trace: run_command: 'ssh' 'git@github.com' 'git-upload-pack '\''gitextensions/gitextensions.git'\'''
trace: run_command: 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 155040 on OTPDEV'
trace: built-in: git 'index-pack' '--stdin' '-v' '--fix-thin' '--keep=fetch-pack 155040 on OTPDEV'
remote: Reusing existing pack: 52618, done.
remote: Counting objects: 69, done.