Skip to content

Instantly share code, notes, and snippets.

Alex Sosnovshchenko alexsosn

Block or report user

Report or block alexsosn

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
@alexsosn
alexsosn / .bashProfile
Created Feb 19, 2015
.bashProfile for Appium setup
View .bashProfile
export ANDROID_HOME="/Users/asos/Library/Developer/Xamarin/android-sdk-macosx"
ANDROID_TOOLS=$ANDROID_HOME/tools/:$ANDROID_HOME/platform-tools
export PATH=$ANDROID_TOOLS:$PATH
export JAVA_HOME=$(/usr/libexec/java_home)
View gist:6c0ce0dfe7dd5ab30f81
- (void)drawRect:(CGRect)rect
{
SQLClient* client = [SQLClient sharedInstance];
client.delegate = self;
[client connect:@"10.146.1.28:1433" username:@"sa" password:@"password" database:@"Intraservice4" completion:^(BOOL success) {
if (success)
{
[client execute:@"SELECT u.Name,count(t.Id) as tot FROM [Intraservice4].[dbo].[Task] t left join TaskExecutor te on t.id = te.TaskId left join [User] u on te.UserId = u.id where 1=1 and StatusId not in ( 28,29,30,53) group by u.Name order by u.Name" completion:^(NSArray* results) {
//NSLog(@"%@",[results[0][0] valueForKey:@"tot"]);
NSLog(@"ДАННЫЕ ИЗ БД ПОЛУЧЕНЫ");
You can’t perform that action at this time.