Skip to content

Instantly share code, notes, and snippets.

View rahulrajpl's full-sized avatar

Random Walker rahulrajpl

View GitHub Profile
@rahulrajpl
rahulrajpl / diffusionmap.ipynb
Last active December 9, 2022 09:31
DiffusionMap.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rahulrajpl
rahulrajpl / Course.sol
Created March 11, 2019 19:18
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.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity 0.5.1;
contract Course {
address payable admin; //School Administrator
address payable ManagerContract;
address instructor;
int courseNo;
struct Marks{
@rahulrajpl
rahulrajpl / Course.sol
Created March 8, 2019 08:06
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.4.17+commit.bdeb9e52.js&optimize=false&gist=
pragma solidity 0.5.1;
contract Course {
address admin;
address ManagerContract;
address instructor;
int courseNo;
struct Marks{
@rahulrajpl
rahulrajpl / ballot.sol
Created March 7, 2019 11:38
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.1+commit.c8a2cb62.js&optimize=false&gist=
pragma solidity >=0.4.22 <0.6.0;
contract Ballot {
struct Voter {
uint weight;
bool voted;
uint8 vote;
address delegate;
}
struct Proposal {
@rahulrajpl
rahulrajpl / gist:96635e54514d4cfc121a230c5009de10
Created February 18, 2018 11:27
Quicksort Algorithm in Python
import sys
import random
sys.setrecursionlimit(1500)
def quick_sort(A):
quick_sort2(A, 0, len(A)-1)
def quick_sort2(A, low, hi):
if low < hi: