Recipe
- Install NVM
- Install IO.js
- Install global Node.js utility modules (gulp, jspm, yo)
- Install RethinkDB
- Install Koa.js
- Install Aurelia generator
- Create Aurelia app via generator
<div id="container" style="height:100%;"></div> |
/* | |
In JavaScript, objects can be used to serve various purposes. | |
To maximise our usage of the type system, we should assign different types to our objects depending | |
on the desired purpose. | |
In this blog post I will clarify two common purposes for objects known as records and dictionaries | |
(aka maps), and how they can both be used with regards to the type system. |
#!/usr/bin/env bash | |
# fork from https://gist.github.com/jakemhiller/d342ad51505addf78ec628a16fd3280f | |
changed_files="$(git diff-tree -r --name-only --no-commit-id $1 $2)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" | |
} | |
check_run package.json "npm prune && npm install" |
public sealed class CustomFormatConverter<T> : ConverterBase where T : IFormattable | |
{ | |
private string _formatString; | |
private IFormatProvider _formatProvider; | |
private Type _objType; | |
#region constructors | |
public CustomFormatConverter(string Format) | |
: this(Format, null) | |
{ } |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
// see http://stackoverflow.com/questions/3975741/column-headers-in-csv-using-filehelpers-library/8258420#8258420 | |
// ReSharper disable CheckNamespace | |
namespace FileHelpers | |
// ReSharper restore CheckNamespace |
using System; | |
using FileHelpers; | |
using NUnit.Framework; | |
namespace FileHelpers.Tests.Converters | |
{ | |
[TestFixture] | |
public class RecordStringConverter.cs | |
{ | |
FileHelperEngine<UserRecord> engine = new FileHelperEngine<UserRecord>(); |