Skip to content

Instantly share code, notes, and snippets.

View truseed's full-sized avatar

Needle Eye truseed

View GitHub Profile
@truseed
truseed / linq.js
Created September 21, 2016 10:30
Linq implementation in ES6
let linq = function*(array){
for (let item of array){
yield item;
}
};
let where = function*(predicate){
for(let item of this){
if (predicate(item)) {
yield item;
@truseed
truseed / introrx.md
Created September 8, 2016 19:35 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@truseed
truseed / TypeExtensions.IsSimpleType.cs
Created August 2, 2016 08:28 — forked from jonathanconway/TypeExtensions.IsSimpleType.cs
Determine whether a type is simple.
public static class TypeExtensions
{
/// <summary>
/// Determine whether a type is simple (String, Decimal, DateTime, etc)
/// or complex (i.e. custom class with public properties and methods).
/// </summary>
/// <see cref="http://stackoverflow.com/questions/2442534/how-to-test-if-type-is-primitive"/>
public static bool IsSimpleType(
this Type type)
{
@truseed
truseed / git.css
Created April 26, 2016 11:20 — forked from neilgee/git.css
Git Command Line Reference - Notes and reminders on set up and commands
/*
* Set up your Git configuration
*/
git config --global user.email "you@yourdomain.com"
git config --global user.name "Your Name"
git config --global core.editor "nano"