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 LoggingFacility : AbstractFacility | |
{ | |
private ILogger logger; | |
protected override void Init() | |
{ | |
if (logger == null) | |
{ | |
return; | |
} |
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
Verifying my Blockstack ID is secured with the address 1L2jH35xqFjgh7yHHThg3bkaSNsp78UqY9 https://explorer.blockstack.org/address/1L2jH35xqFjgh7yHHThg3bkaSNsp78UqY9 |
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
{{#each breadcrumb}} | |
<li {{bind-attr class="isActive:active"}}> | |
{{#if link}} | |
{{#link-to link}}{{text}}{{/link-to}} | |
{{else}} | |
{{text}} | |
{{/if}} | |
</li> | |
{{/each}} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using NUnit.Framework; | |
namespace AyendeTest | |
{ | |
[TestFixture] | |
public class Class1 | |
{ |
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
module Middleware | |
# this class cheats and bypasses rails altogether if the client attempts | |
# to download a static asset | |
class TurboDev | |
def initialize(app, settings={}) | |
@app = app | |
end | |
def call(env) | |
# hack to bypass all middleware if serving assets, a lot faster 4.5 seconds -> 1.5 seconds | |
if (etag = env['HTTP_IF_NONE_MATCH']) && env['REQUEST_PATH'] =~ /^\/assets\// |
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 void Request<TRequest, TResponse>(TRequest message, Action<TResponse> onResponse) | |
where TRequest : ICorrelated | |
where TResponse : ICorrelated | |
{ | |
var requester = CreateRequester<TRequest, TResponse>(); | |
requester.Request(message, response => | |
{ | |
onResponse(response); | |
requester.Dispose(); | |
}); |
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
Ember.Handlebars.registerBoundHelper 'timeSince', (value) -> | |
m = moment(value).fromNow() | |
return new Handlebars.SafeString('<span data-livestamp="' + value + '">' + m + '</span>') |
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
param($installPath, $toolsPath, $package) | |
# notify the user we're going to be doing something destructive | |
# find out where to put the files, we're going to assume that the | |
# solution file is in a ./src directory and we want to put | |
# everything in a ./build directory at the same level. | |
$rootDir = (Get-Item $installPath).parent.parent.parent.fullname | |
$deployTarget = "$rootDir\deploy\support\" |
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
Import-Module WebAdministration | |
########################### | |
# externally configured variables | |
########################### | |
$subdomain = 'subdomain' # e.g. subdomain.yourdomain.com | |
$appPoolName = 'Awesome App Pool!!!' | |
$appPoolFrameworkVersion = "v4.0" | |
$domain = 'yourdomain.com' |
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
App.WorkersIndexController = Ember.ArrayController.extend | |
refresh: -> | |
console.log 'refreshing workers' | |
@set 'refreshing', App.Worker.find() | |
update: (-> | |
refreshing = @get 'refreshing' | |
return unless refreshing.get('isLoaded') | |
Ember.run => | |
@set 'content', refreshing |
NewerOlder