This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name KlavogonkiAutoStart | |
// @namespace klavogonki.ru | |
// @version 0.0.2.0 | |
// @description Auto start open races on Klavogonki.Ru site | |
// @author Spaider | |
// @grant none | |
// @include http://klavogonki.ru/* | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Accessor for working with Stuff | |
/// </summary> | |
public static class SampleDataAccessor | |
{ | |
/// <summary> | |
/// This overload opens DB connection and thus, manages DB state. | |
/// Wrapping creation in using clause ensures that it will be | |
/// properly disposed | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Declare @oldEmail Varchar(100) = '<specify old email here>' | |
Declare @newEmail Varchar(100) | |
Declare @racerID Int | |
Declare @userId Uniqueidentifier | |
Set @userId = (Select am.UserId From aspnet_Membership am Where am.Email Like @oldEmail) | |
Print 'User ID: ' + Cast(@userId As Varchar(45)) | |
Set @racerID = ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loading = false; | |
$(window).scroll(function(){ | |
if((($(window).scrollTop()+$(window).height())+250)>=$(document).height()){ | |
if(loading == false){ | |
loading = true; | |
$('#loadingbar').css("display","block"); | |
$.get("load.php?start="+$('#loaded_max').val(), function(loaded){ | |
$('body').append(loaded); | |
$('#loaded_max').val(parseInt($('#loaded_max').val())+50); | |
$('#loadingbar').css("display","none"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Begin | |
Declare @aiRacerID Int | |
Declare @row Int | |
Declare @page Int = 1 | |
Declare @pageSize Int = 10000 | |
Set Nocount On | |
Declare spCursor Cursor fast_forward | |
For |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
namespace ProducerConsumerTest | |
{ | |
class Program | |
{ | |
private const int MAX_CONCURRENCY_LEVEL = 5; | |
private const int NUM_PAGES = 20; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Reflection; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Number of Athletes (info) | |
match (:Athlete) | |
return count(*) | |
// Number of Courses (info) | |
match (:Course) | |
return count(*) | |
// Number of Races (info) | |
match (:Race) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @login nVARCHAR(50) | |
SET @login = '' | |
SET NOCOUNT ON | |
IF @login = '' | |
BEGIN | |
RAISERROR ('Please define @login', 18, 1) | |
RETURN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
match (r:RSVP)-[rr:RSVP_RACE]->(race:Race) | |
with r, count(race) as cnt | |
where cnt > 1 | |
return id(r), cnt |
OlderNewer