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 |
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 (a:Athlete)-[ar]->(r:RSVP) | |
with r, count(a) as cnt | |
where cnt > 1 | |
return id(r), cnt |
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
select | |
sumTbl.ID, | |
cp.CP_Description as 'Description', | |
sumTbl.[Courses in 2013], | |
sumTbl.[Courses in 2014], | |
sumTbl.[Results in 2013], | |
sumTbl.[Results in 2014] | |
from | |
vr_l_CoursePattern cp | |
inner join |
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
with summary as ( | |
select | |
r.QueryId, | |
r.QueryTime, | |
r.Result, | |
row_number() over (partition by r.QueryId order by r.QueryTime desc) as rk | |
from vr_t_Neo4jHealthResult r | |
) | |
select | |
s.QueryId, |
OlderNewer