View switchtory.lightswitchslider.js
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
/// <reference path="jquery-1.7.1.js" /> | |
/// <reference path="jquery.mobile-1.1.1.js" /> | |
/// <reference path="msls-1.0.0.js" /> | |
(function ($) { | |
$.widget("switchtory.lightswitchSlider", { | |
options: { | |
timerInterval: 4000 | |
}, |
View switchtory.lightswitchsearchbox
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 ($) { | |
$.widget("switchtory.lightswitchsearchbox", { | |
_create: function () { | |
}, | |
_init: function () { |
View EntityPropertiesForColor.xml
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
<EntityProperty | |
Name="Color" | |
PropertyType=":String"> | |
<EntityProperty.Attributes> | |
<Required /> | |
<MaxLength | |
Value="255" /> | |
<SupportedValue | |
DisplayName="Aero" | |
Value="#7CB9E8" /> |
View LSHackingChallenge.cs
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
namespace LightSwitchApplication | |
{ | |
public partial class SchedulingViewDiagram | |
{ | |
partial void SchedulingViewDiagram_Created() | |
{ | |
this.FindControl("ReallyCoolImageButton").ControlAvailable += SchedulingViewDiagram_ControlAvailable; | |
} | |
void SchedulingViewDiagram_ControlAvailable(object sender, ControlAvailableEventArgs e) |
View default.html extract
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
<script type="text/javascript"> | |
$(document).ready(function () { | |
var supported = $.mobile.gradeA(); | |
if (!supported) { | |
$(".ui-icon-loading").hide(); | |
$(".ui-bottom-load").append('<div class="msls-header">This browser is not supported. Please upgrade to a more recent, <a href="http://jquerymobile.com/gbs/">supported</a> version.</div>'); | |
} else { | |
msls._run() | |
.then(null, function failure(error) { | |
alert(error); |
View lightswitch.bing-maps.js
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
/// <reference path="JQuery/jquery-1.6.1.js" /> | |
/// <reference path="JQueryMobile/jquery.mobile-1.0.js" /> | |
/// <reference path="../Libraries/MsLs/msls-1.0.0.js" /> | |
/// <reference path="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0" /> | |
/* | |
Usage example | |
myapp.AddEditCustomer.HowDoIGetThere_execute = function (screen) { | |
$("#addressMap").lightswitchBingMapsControl("getLocationOfUser", $("#directions")); | |
}; |
View GetScreensFromModelService
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
private static IEnumerable<string> _allScreens; | |
static BuildingBlockProvider() | |
{ | |
List<string> screens = new List<string>(); | |
foreach (var screenModel in ServiceProxy.Instance.ModelService.Items.OfType<IScreenDefinition>()) | |
{ | |
if (screenModel.Members.Any(m => m.Attributes.OfType<IIsParameterAttribute>().Any(att => !(att.Parent as IScreenPropertyDefinition).PropertyType.Name.EndsWith("?")))) { | |
continue; | |
} | |
View Script.SampleCustomers.sql
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
SET IDENTITY_INSERT [dbo].[Customers] ON; | |
MERGE INTO [dbo].[Customers] AS Target | |
USING (VALUES | |
(1, 'Beth Massi', 'F', 'Burg 1', '8000', 'Brugge', 'Belgium', 1.00), | |
(2, 'Chris Rummel', 'M', 'Burg 1', '8000', 'Brugge', 'Belgium', 0.90 ), | |
(3, 'Matt Evans', 'M', 'Burg 1', '8000', 'Brugge', 'Belgium', 0.80 ), | |
(4, 'Andy Kung', 'M', 'Burg 1', '8000', 'Brugge', 'Belgium', 0.70 ), | |
(5, 'Brian Moore', 'M', 'Burg 1', '8000', 'Brugge', 'Belgium', 0.60 ), | |
(6, 'Matt Sampson', 'F', 'Burg 1', '8000', 'Brugge', 'Belgium', 0.50 ), |
View LightSwitch T4 Template
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
<#@ template debug="true" hostSpecific="true" #> | |
<#@ output extension=".cs" #> | |
<#@ Assembly Name="System" #> | |
<#@ Assembly Name="System.Core.dll" #> | |
<#@ Assembly Name="System.Xml.dll" #> | |
<#@ Assembly Name="System.Xml.Linq.dll" #> | |
<#@ Assembly Name="System.Windows.Forms.dll" #> | |
<#@ import namespace="System" #> | |
<#@ import namespace="System.IO" #> | |
<#@ import namespace="System.Diagnostics" #> |
View script.js
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 CheckMySite() { | |
//Thanks to Sandrino Di Mattia: http://fabriccontroller.net/blog/posts/job-scheduling-in-windows-azure/ | |
warmUpSite("https://mysite.azurewebsites.net/HTMLClient/default.htm"); | |
warmUpSite("https://mysecondsite.azurewebsites.net/HTMLClient/default.htm"); | |
} | |
function warmUpSite(url) { | |
var currentdate = new Date(); | |
OlderNewer