(The best SQL database)
Best bet is to use http://postgresapp.com/ .
Make sure to set up your path once it's installed:
- Run
atom ~/.bash_profile
.
#!/usr/bin/env dotnet-script | |
/* | |
* This work (haveibeenpwnded.csx by James Tuley), | |
* identified by James Tuley, is free of known copyright restrictions | |
* Source: https://gist.github.com/jbtule/7dab1a1031590209bdcfac88ee71cb2b | |
* http://creativecommons.org/publicdomain/mark/1.0/ | |
* | |
* This script uses the Troy Hunt's HaveIBeenPwned.com range api, to search for passwords, | |
* without revealing what you are searching for. | |
* |
(The best SQL database)
Best bet is to use http://postgresapp.com/ .
Make sure to set up your path once it's installed:
atom ~/.bash_profile
.namespace Analogy | |
{ | |
/// <summary> | |
/// This example shows that a library that needs access to target .NET Standard 1.3 | |
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET | |
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library. | |
/// </summary>INetCoreApp10 | |
class Example1 | |
{ | |
public void Net45Application(INetFramework45 platform) |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace AzureTableStorage.Tests | |
{ | |
// Start/stop azure storage emulator from code: |
OK, so technically within the class you can still access the variable by calling getMyProperty or setMyProperty instead of via the property, but you still encapsulate the functionality with the getting and setting. |
//inspired by http://stackoverflow.com/a/2812306/637783 | |
type NullCoalesce = | |
static member Coalesce(a: 'a option, b: 'a Lazy) = match a with Some a -> a | _ -> b.Value | |
static member Coalesce(a: 'a Nullable, b: 'a Lazy) = if a.HasValue then a.Value else b.Value | |
static member Coalesce(a: 'a when 'a:null, b: 'a Lazy) = match a with null -> b.Value | _ -> a | |
let inline nullCoalesceHelper< ^t, ^a, ^b, ^c when (^t or ^a) : (static member Coalesce : ^a * ^b -> ^c)> a b = | |
((^t or ^a) : (static member Coalesce : ^a * ^b -> ^c) (a, b)) |
open System.Linq | |
[<EntryPoint>] | |
let main argv = | |
let counter = List.fold (fun (a,c,g,t) x -> match x with | |
| 'A' -> (a+1, c, g, t ) | |
| 'C' -> (a, c+1, g, t ) | |
| 'G' -> (a, c, g+1, t ) | |
| 'T' -> (a, c, g, t+1) |
using ImpromptuInterface; | |
using Newtonsoft.Json.Linq; | |
/* | |
* This example was inspired by | |
* "Serialization is Lossy" | |
* http://kellabyte.com/2013/05/02/serialization-is-lossy/ | |
*/ | |