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.Linq; | |
using System.Xml.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Diagnostics; | |
//This class is simply used as a demonsration on how to use the extensions | |
public class Foo | |
{ | |
public static void Main() |
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 | |
RXInfo.Patient, | |
RXInfo.Number, | |
Facility.Name, | |
RxInfo.RefillNumber | |
From scriptassist.RXInfo AS RXInfo | |
Left Join scriptAssist.Patient As PatientT On PatientT.PatientId = RXInfo.PatientID | |
Left Join scriptAssist.Facility On Facility.FacilityID = PatientT.FacilityID | |
Where | |
RXInfo.Schedule In ('2','3','4','5') |
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
<html> | |
<script type="text/javascript"> | |
function countToFiveBillion(counter, num){ | |
if(num < 5000000000) | |
{ | |
num++; | |
if(num % 18700 == 0){ | |
counter.innerHTML = num; | |
setTimeout(function() {countToFiveBillion(counter, num)}, 1); | |
} else { |
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
USE [RxDataSQL] | |
GO | |
/****** Object: StoredProcedure [scriptassist].[getPrice] Script Date: 12/16/2011 12:15:15 ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
ALTER Procedure [scriptassist].[getPrice] |
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
function streamInfo(stream) { | |
var self = this; | |
self.name = stream.name; | |
}; | |
function getStream(streamName){ | |
return [{name: streamName}]; | |
} |
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
<!DOCTYPE html> | |
<script src="http://github.com/downloads/SteveSanderson/knockout/knockout-2.0.0.js"></script> | |
<script src="https://raw.github.com/bestiejs/lodash/master/lodash.js"></script> | |
<table > | |
<tr> | |
<th>First Name</th> | |
<th>Last Name</th> | |
<th>Phones</th> | |
</tr> | |
<tbody data-bind="foreach: contacts"> |
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
function positionIt($element, $anchorElement, verticalPercent, horizontalPercent) | |
{ | |
if(!($localElement instanceof jQuery)) | |
{ | |
throw '$element must be a jQuery object'; | |
return; | |
} | |
if(!($anchorElement instanceof jQuery)) | |
{ |
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
function quicktip(options) { | |
var verticalPercent = '0'; | |
var horizontalPercent = '0'; | |
var stick = false; | |
if(options.verticalPercent !== undefined) | |
{ | |
verticalPercent = options.verticalPercent; | |
} |
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
/* | |
I am using the cache here as a persistence layer, so I need to have a deterministic way at minimum | |
of knowing where to look for an object. | |
Problems that I already know exist: Currently I risk overwriting a list that has different items, perhaps I should only add and remove from teh Update section? | |
Thoughts better ways of handling the item changes from the time I fetch them from the cache until I read it from the cache. | |
Maybe instead of modifying the list I read out of the cache I should just send the update directly to the cache? |
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
/* | |
** This exists to show differences in how to access HybridList<T> vs the standard IRedisList<T> | |
*/ | |
//Adding items | |
//IRedisList<T> | |
using(var redis = new RedisClient()) |