Skip to content

Instantly share code, notes, and snippets.

View SudiDav's full-sized avatar
🎯
Never stop learning

Sudi David SudiDav

🎯
Never stop learning
View GitHub Profile
@SudiDav
SudiDav / MinimalAPIs.md
Created June 12, 2023 09:08 — forked from davidfowl/MinimalAPIs.md
Minimal APIs at a glance
@SudiDav
SudiDav / JS-LINQ.js
Created August 11, 2022 09:02 — forked from DanDiplo/JS-LINQ.js
JavaScript equivalents of some common C# LINQ methods. To help me remember!
// JS array equivalents to C# LINQ methods - by Dan B.
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version):
// Here's a simple array of "person" objects
var people = [
{ name: "John", age: 20 },
{ name: "Mary", age: 35 },
{ name: "Arthur", age: 78 },
{ name: "Mike", age: 27 },
@SudiDav
SudiDav / index.php
Created December 10, 2021 14:45
CRUD in PHP
<?php
include'dbconnect.php';
//Save to db
if (isset($_POST['btnsave'])) {
$productname = $_POST['txtname'];
$productprice = $_POST['txtprice'];
@SudiDav
SudiDav / TowerOfHanoi.cs
Last active October 20, 2021 07:04
Tower Of Hanoi game using recursion
using System;
namespace TowerOfHanoi
{
internal class Program
{
static int counter = 0;
static void Main(string[] args)
{
var discs = 0;

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@SudiDav
SudiDav / master-javascript-interview.md
Created April 27, 2020 20:40 — forked from Geoff-Ford/master-javascript-interview.md
Eric Elliott's Master the JavaScript Interview Series
@SudiDav
SudiDav / composing-software.md
Created April 27, 2020 20:39 — forked from Geoff-Ford/composing-software.md
Eric Elliott's Composing Software Series

Eric Elliott's "Composing Software" Series

A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.

Edit: I see that each post in the series now has index, previous and next links. However, they don't follow a linear flow through all the articles with some pointing back to previous posts effectively locking you in a loop.

@SudiDav
SudiDav / CsharpNumberGuess.cs
Created October 16, 2019 15:17
CsharpNumberGuess
using System;
namespace NumberGuesser
{
class Program
{
//App Entry point
static void Main(string[] args)
{
GetAppInfo();
@SudiDav
SudiDav / cities.json
Created August 16, 2019 14:59
Some USA cities
[
{
city: "New York",
growth_from_2000_to_2013: "4.8%",
latitude: 40.7127837,
longitude: -74.0059413,
population: "8405837",
rank: "1",
state: "New York"