Skip to content

Instantly share code, notes, and snippets.

@ejsmith
ejsmith / gist:6081109
Created Jul 25, 2013
Exceptionless config file samples
View gist:6081109
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="exceptionless" type="Exceptionless.Configuration.ExceptionlessSection, Exceptionless" />
</configSections>
<!-- attribute names are cases sensitive, must specify a path that you have write access to -->
<exceptionless apiKey="API_KEY_HERE" enableLogging="true" logPath="C:\log.txt" />
...
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
@ejsmith
ejsmith / each_with_index.coffee
Created Dec 11, 2012 — forked from burin/each_with_index.coffee
each_with_index handlebars helper, adds an {{index}} prop accessible from within the block
View each_with_index.coffee
Handlebars.registerHelper 'each_with_index', (array, fn) ->
buffer = ''
for i in array
item = i
item.index = _i
buffer += fn(item)
buffer
@ejsmith
ejsmith / each_with_index.js
Created Dec 11, 2012 — forked from dsci/each_with_index.js
each_with_index handlebars helper, adds an {{index}} prop accessible from within the block
View each_with_index.js
// {{#each_with_index records}}
// <li class="legend_item{{index}}"><span></span>{{Name}}</li>
// {{/each_with_index}}
Handlebars.registerHelper("each_with_index", function(array, fn) {
var buffer = "";
for (var i = 0, j = array.length; i < j; i++) {
var item = array[i];
// stick an index property onto the item, starting with 1, may make configurable later