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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<appSettings> | |
<add key="Port" value="1337"/> | |
</appSettings> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> | |
</startup> | |
<runtime> | |
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
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 Website { | |
/// <summary> | |
/// Configures Cassette IoC | |
/// </summary> | |
public class CassetteContainerConfiguration : IConfiguration<TinyIoCContainer> | |
{ | |
public void Configure(TinyIoCContainer container) | |
{ |
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
<# | |
.SYNOPSIS | |
Generates an HTML5 offline app cache manifest file | |
.DESCRIPTION | |
Generates an offline app cache manifest file according to file paths specified | |
and outputs with MD5 checksums so manifest only changes when dependent files change. |
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
/** | |
* Performance reporting for Knockout binding handlers | |
* | |
* Usage: Include after all bindings are declared, view console for results. | |
*/ | |
(function () { | |
var report = []; | |
var lastReport = 0; | |
var debounceWait = 500; |
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
/** | |
* An extender that syncs the observable with the address | |
* bar (using hash fragment). Will load from URL hash or | |
* querystring (at time of creation) and will | |
* update hash when observable changes. | |
* | |
* Options: string|object | |
* String: Query parameter key to get/set | |
* Object: | |
* - param - Query parameter key to get/set |
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
var Travis = require('travis-ci'); | |
// change this | |
var repo = "kamranayub/kamranayub.github.io"; | |
var travis = new Travis({ | |
version: '2.0.0' | |
}); | |
travis.authenticate({ |
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
#!/bin/bash | |
echo "Running deployment script..." | |
CURRENT_COMMIT=`git rev-parse HEAD` | |
# Change the branch used if applicable (e.g. gh-pages) | |
echo "Cloning master branch..." | |
# Hide output since we use an access token here | |
git clone -b master "https://${GH_TOKEN}@${GH_REF}" _deploy > /dev/null 2>&1 || exit 1 |
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
var rootElementJson = { | |
root: { | |
name: "Foo", | |
person: true | |
} | |
}; | |
var removeRootElement = function (obj) { | |
var numKeys = 0, | |
rootKey; |
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
var options = {}; | |
// jQuery options | |
// options.url = foo; | |
// CSRF Token | |
var csrfToken = $("input[name='__RequestVerificationToken']").val(); | |
if (csrfToken) { | |
options.headers = { |