This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I would personally use the term DTO only when the Data is being transferred across layers, services or applications. | |
Wikipedia defines it as: | |
is an object that carries data between processes | |
Also this highly upvoted answer on StackOverflow says: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Solver | |
open Board | |
// Takes a Value list in parameter and return a new list with all possible wich are duplicates of | |
// locked values removed | |
let removePossibleEntries (values:Value list) : Value list = | |
// printf "\nremovePossibleEntries entry %A" values | |
// get locked values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Board | |
type Value = | |
| Locked of int | |
| Possible of int List | |
type BoardSolved = | |
| Solved | |
| InvalidSolution | |
| BoardUnlocked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module NameLength | |
open System | |
open System.Configuration | |
open MathNet.Numerics.Distributions | |
// A record type that contains the mean and standard deviation of the names world length from an | |
// input file. | |
type NameLengthInfo = { mean:float; standardDeviation: float } | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* OpenSimplex Noise in C# | |
* Ported from https://gist.github.com/KdotJPG/b1270127455a94ac5d19 | |
* and heavily refactored to improve performance. */ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
namespace NoiseTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## | |
# Win10 Initial Setup Script | |
# Author: Disassembler <[email protected]> | |
# Version: 1.7, 2016-08-15 | |
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/ | |
# THIS IS A PERSONALIZED VERSION | |
# This script leaves more MS defaults on, including MS security features. | |
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PhoneModel | |
{ | |
public long PhoneNumber { get; set; } | |
private string _phoneString; | |
[DataType(DataType.PhoneNumber)] | |
public string PhoneString | |
{ | |
get |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Tests | |
// modules under test | |
open HeightMap | |
open MidpointDisplacement | |
// assert functions | |
let assertAreEqual expected actual = | |
if expected <> actual then | |
sprintf "Test failed, expected %A, actual %A" expected, actual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"source": "web-platform-tests", "thread": "MainThread", "time": 1446520493410, "action": "log", "message": "Using 8 client processes", "level": "INFO", "pid": 19718} | |
{"source": "web-platform-tests", "thread": "MainThread", "time": 1446520493418, "action": "log", "message": "Generating new CA in /tmp/tmpKJ2WiG", "level": "INFO", "pid": 19718} | |
{"thread": "MainThread", "process": "19898", "pid": 19718, "source": "web-platform-tests", "command": "/usr/bin/openssl req -config /tmp/tmpKJ2WiG/openssl.cfg -batch -new -newkey rsa:2048 -keyout /tmp/tmpKJ2WiG/cakey.pem -out /tmp/tmpKJ2WiG/careq.pem -subj /CN=web-platform-tests -passout pass:web-platform-tests", "time": 1446520493505, "action": "process_output", "data": "Generating a 2048 bit RSA private key\n...+++\n...............................................................+++\nwriting new private key to '/tmp/tmpKJ2WiG/cakey.pem'\n-----\n"} | |
{"thread": "MainThread", "process": "19899", "pid": 19718, "source": "web-platform-tests", "command": "/usr/bin/openssl ca - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# question 1 | |
puts “Hello, world” |
NewerOlder