Skip to content

Instantly share code, notes, and snippets.

View srsandy's full-sized avatar
👨‍💻
Learning everyday.

Sandeep「 Flame 」 srsandy

👨‍💻
Learning everyday.
  • Delhi IND
View GitHub Profile
@srsandy
srsandy / prototype.md
Last active June 19, 2018 14:39
PROTOTYPE in JAVASCRIPT

PROTOTYPE IN JS. 😄

By default every function has a property name as prototype which is EMPTY (by default). We can add properties and methods to it.

Note: Every function is a contructor function in JS.

Let's say we have an function x and create an object x of x as x1 will inherite the prototype of x.

@vratiu
vratiu / .bash_aliases
Last active June 26, 2024 08:15
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@willurd
willurd / web-servers.md
Last active June 26, 2024 11:15
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000