Skip to content

Instantly share code, notes, and snippets.

@duhowise
duhowise / AdvancedDistributedSystemDesignCourseNotes.md
Created December 13, 2022 20:08 — forked from craigtp/AdvancedDistributedSystemDesignCourseNotes.md
Notes on Udi Dahan's Advanced Distributed System Design Course

Advanced Distributed System Design Course - Udi Dahan

Notes by Craig Phillips

Fallacies of Distributed Computing

  • There are 11 fallacies of Distributed Computing:
    1. The network is reliable
    2. Latency isn’t a problem
    3. Bandwidth isn’t a problem
    4. The network is secure
  1. The topology won’t change
public static int[] Convert(int[,] twoDimensionalArray)
{
var conversion = new List<int>();
for (var i = 0; i < twoDimensionalArray.GetLength(0); i++)
{
for (var j = 0; j < twoDimensionalArray.GetLength(1); j++)
{
conversion.Add(twoDimensionalArray[i,j]);
}
}
SET DATEFORMAT ymd
SET ARITHABORT, ANSI_PADDING, ANSI_WARNINGS, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER, ANSI_NULLS, NOCOUNT ON
SET NUMERIC_ROUNDABORT, IMPLICIT_TRANSACTIONS, XACT_ABORT OFF
GO
SET IDENTITY_INSERT DateQuery.dbo.Users ON
GO
INSERT DateQuery.dbo.Users(Id, Name, AddedDate) VALUES (1, N'Abraham968', '2019–02–02 20:03:07.120')
INSERT DateQuery.dbo.Users(Id, Name, AddedDate) VALUES (2, N'Markus549', '2019–08–10 07:36:36.060')
INSERT DateQuery.dbo.Users(Id, Name, AddedDate) VALUES (3, N'Jason4', '2019–01–24 01:24:27.000')
INSERT DateQuery.dbo.Users(Id, Name, AddedDate) VALUES (4, N'Mcnally2', '2019–01–09 10:23:40.950')
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
pragma solidity >=0.4.22 <0.6.0;
contract Inheritance{
address owner;
bool deseased;
uint money;
constructor() public payable{
owner=msg.sender;
money=msg.value;
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jul 04, 2016 at 02:50 PM
-- Server version: 5.6.17
-- PHP Version: 5.5.12
SET SQL_MODE
@duhowise
duhowise / Git ignore for .net
Created August 25, 2019 17:56
Git ignore for .net and netcore apps from gitigore.io
# Created by https://www.gitignore.io/api/dotnetcore,aspnetcore,visualstudio,visualstudiocode
# Edit at https://www.gitignore.io/?templates=dotnetcore,aspnetcore,visualstudio,visualstudiocode
### ASPNETCore ###
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
Has been working as a C# developer on contract for the last several years, including 3 years at Microsoft. Previously worked with Visual Basic and Microsoft Access VBA, and have developed code for Word, Excel and Outlook. Started working with WPF in 2007 when part of the Microsoft WPF team. For the last eight years has been working primarily as a senior WPF/C# and Silverlight/C# developer. Currently working as WPF developer with BioNano Genomics in San Diego, CA redesigning their UI for their camera system. he can be reached at qck1@hotmail.com.
@duhowise
duhowise / fetch-api-post.js
Created April 25, 2018 02:36 — forked from deanhume/fetch-api-post.js
A simple POST request using the fetch API
fetch(url, {
method: 'POST',
headers: {
'auth': '1234'
},
body: JSON.stringify({
name: 'dean',
login: 'dean',
})
})
@duhowise
duhowise / remove-git-config.sh
Created March 15, 2018 07:49 — forked from vanpeerdevelopment/remove-git-config.sh
Command to remove a git configuration.
# Remove repository configuration
git config --unset [key]
# Remove global configuration
git config --global --unset [key]
# Remove system configuration
git config --system --unset [key]