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
fun main(args: Array<String>) { | |
val arnav = Person(); | |
println(arnav); | |
arnav.name = "Arnav Kale"; | |
println(arnav); | |
} | |
class Person { | |
var name: String? = null | |
override fun toString(): String { |
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 IntArray | |
{ | |
public static int BinarySearch(int[] items, int searchTerm) | |
{ | |
return SearchRecursively(items, searchTerm, 0, items.Length - 1); | |
} | |
private static int SearchRecursively(int[] items, int searchTerm, int lowerIndex, int upperIndex) | |
{ | |
var scannedAllItems = lowerIndex > upperIndex; |
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
using System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Security; | |
using System.Threading; | |
internal class Program | |
{ | |
[DllImport("Kernel32.dll"), SuppressUnmanagedCodeSecurity] | |
public static extern int GetCurrentProcessorNumber(); |
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 Student | |
{ | |
public readonly string Name; | |
public readonly string Email; | |
public readonly List<String> Subjects; | |
public Student(string name, string email, List<String> subjects) | |
{ |
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
How browsers work - Behind the scenes of modern web browsers: http://taligarsiel.com/Projects/howbrowserswork1.htm |
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
using System; | |
using System.Collections.Generic; | |
namespace NMart.Billing | |
{ | |
internal class NMartStore | |
{ | |
private static Dictionary<string, int> CategoryGstRatesInPercentage = new Dictionary<string, int>(); | |
private static Dictionary<string, string> ItemsCategoryMapping = new Dictionary<string, string>(); |
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
function login(email, password, sendEmail, sendSMS) { | |
// logic for user authentication | |
this.authenticate(username, password); | |
// logic to fetch user, access code, message content, settings login token in storage | |
if(sendEmail) { | |
// logic to send access code via email | |
} | |
if(sendSMS) { |
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
**Use Cases** | |
- User can register his/her account. | |
- An account owner can log into the system. | |
- An account owner can view, add, update, and delete category for expenses. | |
- An account owner can view, add, update, and delete expense. |
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
const express = require('express'); | |
import routes from './routes/rest-api'; | |
const app = express(); | |
const port = 3000; | |
const hostUrl = "http://localhost:3000" | |
app.use('/', routes); | |
routes.stack.forEach(function (element) { |
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
HTTP GET http://localhost:3000/userJWTValidation | |
HTTP GET http://localhost:3000/JwtValidation | |
HTTP GET http://localhost:3000/creationOfUserDetails | |
HTTP GET http://localhost:3000/getAllusersDetails | |
HTTP GET http://localhost:3000/fetchUserDetails | |
HTTP GET http://localhost:3000/deletionOfUserDetails | |
HTTP GET http://localhost:3000/updationOfUserDetails | |
HTTP GET http://localhost:3000/getExpenseCategoryOfUsers | |
HTTP GET http://localhost:3000/getExpenseCategoryOfUser | |
HTTP GET http://localhost:3000/deletionExpenseCategoryOfUser |
NewerOlder