Giter Site home page Giter Site logo

nalarium-core's Introduction

Nalarium (.net core) - Extended BCL for .net core

Copyright (c) 2005-2017 David Betz

Build Status NuGet Version and Downloads count

You do stuff enough you'll want to stop repeating yourself. You'll want to be DRY. This is my desert.

I add my regularly and common stuff to Nalarium. It's my .NET crutch as much as understore.js is my crutch in ES5.

Totally out-of-context Nalarium.dll sample:

var path = @"E:\Drive\Documents\Content\NetFX\NetFXContent\2009\06";
var url = Url.FromPath(path);
var ultima = Url.GetPart(context, Position.Penultima);
//+ ultimate == 2009

Unit tests act as practical documentation. For example:

public void ParseBoolean()
{
  Assert.True(Nalarium.Parser.ParseBoolean(1));
  Assert.True(Nalarium.Parser.ParseBoolean("1"));
  Assert.True(Nalarium.Parser.ParseBoolean("1.0"));
  Assert.True(Nalarium.Parser.ParseBoolean("true"));
  Assert.True(Nalarium.Parser.ParseBoolean("True"));
  Assert.True(Nalarium.Parser.ParseBoolean("active"));
  Assert.True(Nalarium.Parser.ParseBoolean("on"));
  Assert.False(Nalarium.Parser.ParseBoolean("12"));
  Assert.False(Nalarium.Parser.ParseBoolean(12));
}

and

public void Decompose()
{
  var results = Nalarium.Binary.Decompose(12345);

  var expected = new List<long>(new long[] { 1, 8, 16, 32, 4096, 8192 });

  Assert.Equal(expected, results);
}

nalarium-core's People

Contributors

davidbetz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.