Skip to content

Instantly share code, notes, and snippets.

View palash25's full-sized avatar

Palash Nigam palash25

View GitHub Profile
@palash25
palash25 / sHORTBFWRITE.bf
Created March 8, 2017 20:30
Shortned version of the SPOJ problem BFWRITE
++++++++++ [>+++ >+++++ [>++ >++>++>++>++<<<<<-]>-- >--- >>+ >++ [<]<<- ]>++ >>+++.---.-. >++++. <<<. >>>>+++++. >+++++. <<<<<. >>>>. >-----. <-----.+..-. <<<<. >>>>---.>>-. <<++++. >>----. <+.--. <.
@palash25
palash25 / BFWRITE.bf
Last active March 8, 2017 20:30
Spoj problem to print "SPOJ is indeed awesome" in BRAINFUCK
//BFUCK program to print "SPOJ is indeed awesome".
++++++++++ //increment cell 0 to 10
[
>+++ // cell 1 = 3
>+++++ // cell 2 = 5
[
>++ // cell 3 = 5*2
>++
>++
>++
@palash25
palash25 / The Technical Interview Cheat Sheet.md
Created August 21, 2017 11:00 — forked from sahildua2305/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.
@palash25
palash25 / coala-run.txt
Created January 1, 2018 16:54
Running coala on a project
(venv) palash25@Lenovo-G50:~/Dev/Projects/CoWaPS$ coala
Executing section all...
Executing section pep8...
Executing section commit...
[nltk_data] Downloading package punkt to /home/palash25/nltk_data...
[nltk_data] Package punkt is already up-to-date!
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data] /home/palash25/nltk_data...
[nltk_data] Package averaged_perceptron_tagger is already up-to-
[nltk_data] date!
Verifying my Blockstack ID is secured with the address 18mWptFRVARNMEjtHB5oFKGeapBTn2CmUh https://explorer.blockstack.org/address/18mWptFRVARNMEjtHB5oFKGeapBTn2CmUh
@palash25
palash25 / EthereumDev.md
Created February 8, 2018 05:14 — forked from learner-long-life/EthereumDev.md
How to Set up an Ethereum Dev Environment

How to Set up an Ethereum Dev Environment

So you want to be an Ethereum developer! Congrats, much treasure awaits you. Developing Ethereum dapps benefits from having a well-crafted development environment. This can often be daunting to beginners, so I'm giving you my favorite dev environment to help get you started.

Once your code fortress is constructed, you'll be able to

  • Compile smart contracts written in Solidity
import asyncio
loop = asyncio.get_event_loop()
async def hello():
await asyncio.sleep(3)
print('Hello!')
if __name__ == '__main__':
loop.run_until_complete(hello())
@palash25
palash25 / cockroach-coala-run.txt
Created March 26, 2018 19:00
Contains output of coala analysis run on the cockroachdb repo using GoVet and Gofmt
Executing section all...
Executing section all.go...
[WARNING][00:17:24] GoVetBear: This result has no patch attached.
[WARNING][00:17:24] GoVetBear: This result has no patch attached.
[WARNING][00:17:24] GoVetBear: This result has no patch attached.
[WARNING][00:17:24] GoVetBear: This result has no patch attached.
[WARNING][00:17:24] GoVetBear: This result has no patch attached.
[WARNING][00:17:24] GoVetBear: This result has no patch attached.
[WARNING][00:17:24] GoVetBear: This result has no patch attached.
[WARNING][00:17:24] GoVetBear: This result has no patch attached.
@palash25
palash25 / .coafile
Last active March 27, 2018 12:13
Ran coala on cpython codebase with 2 bears
[all]
bears = LineLengthBear
max_line_length = 80
[all.python]
bears = PEP8Bear, PyFlakesBear
files = **.py
===> Downloading platform specific fabric binaries
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 35.4M 100 35.4M 0 0 879k 0 0:00:41 0:00:41 --:--:-- 2220k
===> Downloading platform specific fabric-ca-client binary
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6109k 100 6109k 0 0 519k 0 0:00:11 0:00:11 --:--:-- 891k
===> Pulling fabric Images
==> FABRIC IMAGE: peer