This file contains hidden or 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
-- Find the job schedule | |
SELECT | |
JobName | |
,ScheduledTime | |
,Interval | |
FROM tbl_JobDefinition jd | |
INNER JOIN tbl_JobSchedule js ON jd.JobId = js.JobId | |
WHERE | |
JobName = 'Incremental Analysis Database Sync' |
This file contains hidden or 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
((//table)|(//div))[starts-with(@id,'container')] |
This file contains hidden or 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 @LoadTestRunId int | |
DECLARE db_cursor CURSOR FOR | |
SELECT LoadTestRunId [LoadTestRunId] FROM [LoadTest2010].[dbo].[LoadTestRun] | |
OPEN db_cursor | |
FETCH NEXT FROM db_cursor INTO @loadTestRunId | |
WHILE @@FETCH_STATUS = 0 | |
BEGIN |
This file contains hidden or 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
* { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} |
This file contains hidden or 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
// To Load the SiteMap into telerik framework | |
SiteMapManager.SiteMaps.Register<AnotherXmlSiteMap>("sample", siteMap => siteMap.LoadFrom("~/sample.sitemap")); | |
// Binding in UI | |
@Html.Kendo().Menu().Name("Menu").BindTo("sample") | |
// classes to support it | |
public class AnotherXmlSiteMap : XmlSiteMap | |
{ | |
public AnotherXmlSiteMap() : base(new PathResolver(), new AnotherVPP(), DI.Current.Resolve<ICacheProvider>()) |
This file contains hidden or 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
public class CustomEntityTypeConfiguration<T> : EntityTypeConfiguration<T> where T : EntityBase | |
{ | |
public CustomEntityTypeConfiguration() | |
{ | |
this.Property(t => t.CreatedDate).HasColumnType("datetime2"); | |
} | |
} | |
// usage | |
public class EntityBase { |
This file contains hidden or 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 kue = require('kue'); | |
var jobs = kue.createQueue(); | |
setInterval(function() { | |
var job = jobs.create('add', {x: 1, y: 2}).save(); | |
job.on('complete', function() { | |
console.log('job complete'); | |
}); | |
}, 1000); |
This file contains hidden or 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 kue = require('kue'); | |
var jobs = kue.createQueue(); | |
jobs.process('add', function(job, done) { | |
setTimeout(function() { | |
console.log(job.data.x+job.data.y); | |
done(); | |
}, 2000); | |
}); |
This file contains hidden or 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 kue = require('kue'); | |
var redis = require('redis'); | |
kue.redis.createClient = function() { | |
var client = redis.createClient(6379, 'redis-host'); | |
//client.auth('password'); | |
return client; | |
}; | |
var jobs = kue.createQueue(); |
This file contains hidden or 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 resque = require('coffee-resque').connect({ | |
host: 'redisHost', | |
port: 6379 | |
}); | |
var sequence = 0; | |
setInterval(function() { | |
var args = [1, sequence++]; | |
resque.enqueue('math', 'add', args); | |
console.log('add ' + args); |
OlderNewer