Skip to content

Instantly share code, notes, and snippets.

View bsatrom's full-sized avatar
🏠
Working from home

Brandon Satrom bsatrom

🏠
Working from home
View GitHub Profile
public interface IDependencyResolver
{
object GetService(Type serviceType);
IEnumerable<object> GetServices(Type serviceType);
}
setInterval(function () {
$.getJSON('Photo/CommentsForUser/' + new Date().getTime() , function (data) {
$.pinify.clearOverlay();
var itemList = [];
var commentCount = parseInt($('#commentCount').val());
if (data.length > commentCount) {
$('#commentCount').val(data.length);
$.pinify.flashTaskbar();
$.getJSON('Gallery/List', function (data) {
var itemList = [];
$.each(data, function (key, val) {
var item = {
'name': data[key].name,
'url': 'Gallery/View/' + data[key].id,
'icon': '/Content/Images/icon-gallery.ico'
};
$('#teaser').pinify('pinTeaser', {
addStartLink: false,
backgroundColor: '#ea6d03',
pinText: 'Drag this image to the taskbar to pin this site!'
});
<script type="text/javascript" src="/scripts/jquery-1.5.min.js"></script>
<script type="text/javascript" src="/scripts/jquery.pinify.js"></script>
$('head').ie9ify({
applicationName: 'User InExperience',
tooltip: 'Brandon Satrom on Development, Design and Architecture',
tasks: [ {
'name': 'Blog',
'action': 'http://www.userinexperience.com/blog.aspx',
'icon': 'favicon.ico'
},
{
'name': 'Twitter',
<Action Name="Send an SMS Text Message"
ClassName="MyCompany.Workflow.Messaging.Activities.SendSMSActivity"
Assembly="MyCompany.Workflow.Messaging.Activities, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=fe2315b70tbc147c"
AppliesTo="all"
Category="Messaging Actions">
<RuleDesigner Sentence="Send %1 to number %2">
<FieldBind Field="Message" Text="this message" DesignerType="TextBox" Id="1"/>
<FieldBind Field="Number" Text="this number" DesignerType="TextBox" Id="2"/>
</RuleDesigner>
<system.diagnostics>
<switches>
<add name="System.Workflow LogToTraceListeners" value="1" />
<add name="System.Workflow.Runtime" value="Error"/>
<add name="System.Workflow.Runtime.Hosting" value="Error"/>
<add name="System.Workflow.Runtime.Tracking" value="Error"/>
<add name="System.Workflow.Activities" value="Error"/>
<add name="System.Workflow.Activities.Rules" value="Off"/>
</switches>
<trace autoflush="true">
<configuration>
<system.diagnostics>
<switches>
<add name="System.Workflow LogToTraceListeners" value="1" />
<add name="System.Workflow.Runtime.Hosting" value="Verbose" />
<add name="System.Workflow.Runtime" value="Verbose" />
<add name="System.Workflow.Runtime.Tracking" value="Verbose" />
<add name="System.Workflow.Activities" value="Verbose" />
<add name="System.Workflow.Activities.Rules" value="Verbose" />
</switches>
<add assembly="WebMatrix.Data, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35" />