Skip to content

Instantly share code, notes, and snippets.

@ejsmith
ejsmith / mac-arm-brew-setup.md
Last active January 4, 2023 00:58 — forked from niemyjski/mac-arm-brew-setup.md
Arm Mac New Install (Brew)
  • xcode-select --install
  • softwareupdate --all --install --force
  • softwareupdate --install-rosetta --agree-to-license
  • /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  • Brew
    • brew install --cask microsoft-edge
    • brew install --cask 1password
    • brew install --cask microsoft-teams
    • brew install --cask slack brew install zoom
@ejsmith
ejsmith / gist:1b5f03f676fcd539f6cd
Last active January 25, 2016 22:13
session tracking
-------------------------------------
Session Tracking
-------------------------------------
Exceptionless can also track user sessions which enables powerful application analytics.
Session tracking can be enabled by simply adding this line to the startup of your application:
ExceptionlessClient.Default.Configuration.UseSessions()
@ejsmith
ejsmith / each_with_index.coffee
Created December 11, 2012 16:56 — forked from burin/each_with_index.coffee
each_with_index handlebars helper, adds an {{index}} prop accessible from within the block
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 December 11, 2012 16:53 — forked from dsci/each_with_index.js
each_with_index handlebars helper, adds an {{index}} prop accessible from within the block
// {{#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
Bootstrap.Run(config => {
config.IncludeAssemblyFor<Type>();
config.IncludeAssembly(Assembly);
config.UseAutoMapper(mapper => mapper.UseSomeOption());
config.UseAutofac();
config.LogToConsole();
};
Bootstrap.Run(config =>
config