Skip to content

Instantly share code, notes, and snippets.

View d-saravanan's full-sized avatar
💭
Working in Node.Js and Angular

Saravanan Doraiswamy d-saravanan

💭
Working in Node.Js and Angular
View GitHub Profile
@d-saravanan
d-saravanan / The Technical Interview Cheat Sheet.md
Created March 11, 2019 17:44 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@d-saravanan
d-saravanan / AccessControlListContract.sol
Created November 26, 2018 10:15
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.0+commit.1d4f565a.js&optimize=false&gist=
pragma solidity ^0.5.0;
pragma experimental ABIEncoderV2;
contract AccessControlListContract {
mapping(address => mapping(uint256 => mapping(address => uint256))) _userAccessGrants;
mapping(address => mapping(address => mapping(uint256 => uint256))) _targetAccessGrants;
function grantAccess(address userAddress, uint256 documentHash, address targetUserAddress, uint256 permission) public {
_userAccessGrants[userAddress][documentHash][targetUserAddress] = permission;
_targetAccessGrants[targetUserAddress][userAddress][documentHash] = permission;
@d-saravanan
d-saravanan / createinstancesfromtypes.cs
Created January 31, 2017 05:25
How to create types using Lambda Expressions as against using System.Reflection in .Net
using System;
using System.Linq.Expressions;
namespace ConsoleTester
{
interface Ix
{
string Email { get; set; }
string Name { get; set; }
}