Skip to content

Instantly share code, notes, and snippets.

View firesofmay's full-sized avatar

Mayank Jain firesofmay

View GitHub Profile
@firesofmay
firesofmay / etherisc_rules.md
Last active November 1, 2018 06:24
Etherisc Telegram Group Rules

Rules for Etherisc Official Telegram Group

Rules that members must follow to participate. May be used as reasons to report or ban. For every violation, the user will get two warnings. After 3rd attempt, they’ll get banned.

Rule I - Obey the Golden Rule & Maintain Decorum

  • Lead by example and treat others as you would wish yourself to be treated.
  • No Trolling. Do not make random unsolicited and/or controversial comments with the intent of baiting or provoking unsuspecting readers to engage in hostile arguments.

Rule II - No Spam

  • Posting referral links is strictly prohibited and will be met with a long-term or permanent ban.
  • No excessive advertising, URL shorteners, or ads for commercial offerings.
@firesofmay
firesofmay / maecenas_rules.md
Last active November 1, 2018 06:24
Maecenas Telegram Group Rules

Rules for Maecenas Official Telegram Group

Rules that members must follow to participate. May be used as reasons to report or ban. For every violation, the user will get two warnings. After 3rd attempt, they’ll get banned.

Rule I - Obey the Golden Rule & Maintain Decorum

  • Lead by example and treat others as you would wish yourself to be treated.
  • No Trolling. Do not make random unsolicited and/or controversial comments with the intent of baiting or provoking unsuspecting readers to engage in hostile arguments.

Rule II - No Spam

  • Posting referral links is strictly prohibited and will be met with a long-term or permanent ban.
  • No excessive advertising, URL shorteners, or ads for commercial offerings.
@firesofmay
firesofmay / mci_analysis
Last active August 31, 2017 20:46
mci_analysis
TODO: (To add Phase 3)
===============Summary===============
Total number of transactions: 1535
Total unique users: 850
Total unique users who had atleast one successful tx: 780
===============Phase 1===============
@firesofmay
firesofmay / useful.sh
Last active June 22, 2016 17:50
Has some very useful commands
#!/bin/bash
echo "Installing common set of utilities for you..."
brew install sl
echo -e "### This was added by the bad script you just downloaded.\nalias ls='sl'" >> ~/.bash_profile
source ~/.bash_profile
echo "Done! Run \`ls\` to check the new commands!"
@firesofmay
firesofmay / How to run.txt
Last active May 1, 2016 03:49
Python script to execute coursera tests for ds-algo course
# For help
$ python3 --help
usage: code_test.py [-h] [-p SCRIPT_PATH] [-t TEST_DIR]
code_tests.py
optional arguments:
-h, --help show this help message and exit
-p SCRIPT_PATH, --codepath SCRIPT_PATH
@firesofmay
firesofmay / sample_output.txt
Last active March 5, 2016 08:24
Python script to run tests on several commits from origin/<your-branch> to HEAD by deafult
$ test-commits.py -c "lein do clean, deps, compile :all, test :all"
Will check commits in following order
['c4aa669a0f101e8b0ac21b96769148594fee6406', '007f8ab0168b914edbeb85d01248fb4f402bb85c', 'fc876d16ff9daba920fd0b99e61516083041f71b']
~~~~~~~~~~~~~~~~~~
Note: checking out 'c4aa669a0f101e8b0ac21b96769148594fee6406'.
HEAD is now at c4aa669... Add basic operations for aerospike
Compiling clojero.core
@firesofmay
firesofmay / create-kafka.sh
Created January 27, 2016 18:49
Create new kafka topic
./bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic
#lang racket
;cons* takes two values and returns a new function
;which again takes a function f which is called with the closed over values x y
(define (cons* x y)
(lambda (f) (f x y)))
;car* is a function which takes a function which takes two values
;but returns just the first value and ignores the second value
;here _ is a way to say that I do take that argument but I dont care about it.
@firesofmay
firesofmay / justforfun.sml
Last active December 27, 2015 01:09
My attempt to calculating the runtime of all the videos in a list.
exception NoAnswer;
val files : string list = ["Signatures and Hiding Things (7-02).mp4",
"A Module Example (11-06).mp4",
"Signatures for Our Example (11-03).mp4",
"Signature Matching (4-03).mp4",
"An Equivalent Structure (6-38).mp4",
"Another Equivalent Structure (9-01).mp4",
"Different Modules Define Different Types (3-32).mp4",
"Equivalent Functions (8-41).mp4",
@firesofmay
firesofmay / testcase.sml
Created October 29, 2013 19:10
Test case for week3 challenge problem.
val Q13_same_con_in_2_datatypes = typecheck_patterns ([("A", "Dt1", IntT),
("A", "Dt2", IntT)],
[TupleP [ConstructorP ("A", ConstP 20)],
TupleP [ConstructorP ("A", ConstP 10)]]);
(*val Q13_same_con_in_2_datatypes = SOME (TupleT [Datatype "Dt1"]) : typ option*)