Skip to content

Instantly share code, notes, and snippets.

View RajaniCode's full-sized avatar

Rajani RajaniCode

View GitHub Profile
@RajaniCode
RajaniCode / CS5.cs
Last active December 17, 2019 06:06
CS5
// CS 5
/*
async
await
*/
// async
// The async is the modifier used to mark a method as asynchronous
using System;
@RajaniCode
RajaniCode / CS6.cs
Last active December 17, 2019 06:07
CS6
// CS 6
/*
1. Read-only Auto-properties
2. Auto-Property Initializers
3. Expression-bodied function members
4. using static
5. Null-conditional operators
6. String Interpolation
7. Exception filters
8. nameof Expressions
@RajaniCode
RajaniCode / Azure
Last active August 2, 2021 17:03
Azure
# Azure # Azure Logic Apps # Azure Key Vault
# Azure Logic Apps
# Set up a Web API
Host a Web API in the Azure sandbox
The script to host Web API in Azure performs the following steps:
• Create an Azure App Service plan in the free tier
@RajaniCode
RajaniCode / CS8.cs
Last active August 25, 2021 12:29
CS8
// CS 8
/*
1. Readonly members
2. Default interface methods
3. Pattern matching enhancements:
// Switch expressions
// Property patterns
// Tuple patterns
// Positional patterns
4. Using declarations
@RajaniCode
RajaniCode / MySQLMariaDB
Last active August 26, 2021 01:37
MySQLMariaDB
# MySQL-15.1 # MariaDB-10.4.14
$ winpty mysqladmin --version
$ winpty mysqlsh --version
$ winpty mysql --version
> mysqladmin --version
> mysqlsh --version
> winpty mysql --version
@RajaniCode
RajaniCode / CS7.cs
Last active August 26, 2021 14:03
CS7
// CS 7
/*
1. out variables
2. Tuples
3. Discards
4. Pattern Matching
5. ref locals and returns
6. Local Functions
7. Expression-bodied members
8. Throw expressions
@RajaniCode
RajaniCode / RubyonRailsNodejs
Last active November 14, 2021 13:22
Ruby on Rails | Node.js
rubyinstaller-devkit-3.0.2-1-x64.exe
<Next> Select Components
<Next> Installing C:\Ruby30-x64
<Finish> Run 'ridk install' to set up MSYS2 and development toolchain.
MSYS2 is required to install gems with C extensions.
@RajaniCode
RajaniCode / PythonDjango
Last active December 4, 2021 18:18
Python Django
# Python 3.10.0 $ winpty python --version $ pip --version $ python -m pip install --upgrade pip $ pip show pip $ pip show setuptools $ pip list $ pip install django $ python -m django --version $ django-admin --version $ python -c "import django; print(django.__version__)"
$ export PATH=$PATH:"/C/Python310/:/C/Python310/Scripts/"
# Python 3.10.0 > winpty python --version > pip --version > python -m pip install --upgrade pip > pip show pip > pip show setuptools > pip list > pip install django > python -m django --version > django-admin --version > python -c "import django; print(django.__version__)"
> set path=%path%;C:\Python310\;C:\Python310\Scripts\
python --version
pip --version
@RajaniCode
RajaniCode / PostgreSQL
Last active December 5, 2021 18:36
PostgreSQL
# PostgreSQL 13.1-1
PostgreSQL data directory:
C:\Users\rajanis\Downloads\PostgreSQL\postgresql-13.1-1-windows-x64-binaries\pgsql\bin\data
PostgreSQL Port:
5432
/*
@RajaniCode
RajaniCode / SQLServer
Last active December 16, 2021 19:35
SQLServer
--SQL Server 2019--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--apply------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
USE [master];
GO
--IF EXISTS(SELECT name FROM sys.databases WHERE name = N'sampledb')
IF DB_ID (N'sampledb') IS NOT NULL
DROP DATABASE [sampledb];