Skip to content

Instantly share code, notes, and snippets.

app.config(['$urlMatcherFactoryProvider', function ($urlMatcherFactoryProvider) {
$urlMatcherFactoryProvider.defaultSquashPolicy(true);
$urlMatcherFactoryProvider.type('nullableDate', {
encode: function (val) {
if (ng.isUndefined(val) || !ng.isDate(val) || val == null) return;
return [
val.getFullYear(),
('0' + (val.getMonth() + 1)).slice(-2),
@ronniehicks
ronniehicks / install-homebrew.sh
Last active September 30, 2017 05:42
Mac Dev setup
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@ronniehicks
ronniehicks / bd3d4befe38185704bf0fc875e9deed6|configuration.json
Last active November 19, 2019 20:40
Visual Studio Code Settings Sync Gist
{"contents":{"launch":{"version":"0.2.0","configurations":[{"name":".NET Core Launch (web)","type":"coreclr","request":"launch","preLaunchTask":"build","program":"${workspaceFolder}/bin/Debug/netcoreapp2.1/ProducerWebAPI.dll","args":[],"cwd":"${workspaceFolder}","stopAtEntry":false,"internalConsoleOptions":"openOnSessionStart","launchBrowser":{"enabled":true,"args":"${auto-detect-url}","windows":{"command":"cmd.exe","args":"/C start ${auto-detect-url}"},"osx":{"command":"open"},"linux":{"command":"xdg-open"}},"env":{"ASPNETCORE_ENVIRONMENT":"Development"},"sourceFileMap":{"/Views":"${workspaceFolder}/Views"}},{"name":".NET Core Attach","type":"coreclr","request":"attach","processId":"${command:pickProcess}"}]},"tasks":{"version":"2.0.0","tasks":[{"label":"build","command":"dotnet","type":"process","auto":true,"args":["build","${workspaceFolder}/ProducerWebAPI.csproj"],"problemMatcher":"$msCompile"}]}},"overrides":[],"keys":["launch.version","launch.configurations","tasks.version","tasks.tasks"]}