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
@firesofmay
firesofmay / weekyear-week
Created April 16, 2015 10:41
Convert datetime to weekyear-week
(do
(require '[clj-time.format :as f])
(require '[clj-time.core :as t])
(defn get-week
[dt]
(f/unparse (:weekyear-week f/formatters)
dt))
(println (get-week (t/now)))
(println (get-week (t/minus (t/now)
(t/days 30)))))
@firesofmay
firesofmay / stop_words.txt
Created December 30, 2014 12:36
stop words
a
about
above
after
again
against
all
am
an
and
@firesofmay
firesofmay / math.txt
Created December 22, 2014 13:23
Inputs
| TestCase | Input | Output | Expected |
|----------+-----------------+---------------+----------|
| 01 | "" | "" | Error |
| 02 | "()" | "" | Error |
| 03 | " 1 + 2 " | Invalid Input | 3.0 |
| 04 | "11" | 11 | 11.0 |
| 05 | "2-4+6" | 22.0 | 4.0 |
| 06 | "2-4+6-1-1-0+8" | 21.0-18.0 | 10.0 |
| 07 | "1-1+2-2+4-4+6" | 11.02.02.0 | 6.0 |