Skip to content

Instantly share code, notes, and snippets.

@shishir
shishir / gist:1448b8bc223c7f3d8c97
Created June 4, 2015 08:43
Random password in javascript
Math.random().toString(36).slice(2)

Keybase proof

I hereby claim:

  • I am shishir on github.
  • I am shishir (https://keybase.io/shishir) on keybase.
  • I have a public key whose fingerprint is CCFD 16A2 86A6 F608 CD29 3922 CC08 D9B0 8C06 F9D0

To claim this, I am signing this object:

@shishir
shishir / index.html
Created August 17, 2017 04:30
zdpZrv
<button class="btn">Designer</button>
# Reference: https://dataedo.com/kb/tools/mysql-workbench/how-to-export-data-dictionary
from wb import *
import grt
from mforms import Utilities, FileChooser
import mforms
import csv
ModuleInfo = DefineModule(name="DBReport", author="Shishir Das", version="1.0", description="Database schema dump in csv")
@shishir
shishir / clean_code.md
Last active August 26, 2021 05:50 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules