Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View kgashok's full-sized avatar
🎯
Focusing

Ashok Bakthavathsalam kgashok

🎯
Focusing
View GitHub Profile
@kgashok
kgashok / PrinciplesOfSuccess.md
Last active March 23, 2020 15:52
Principles of Success - Ray Dalio
<title>PrinciplesOfSuccess</title>
@kgashok
kgashok / PrinciplesOfSuccess.md
Last active March 23, 2020 15:52
Principles of Success - Ray Dalio
<title>PrinciplesOfSuccess</title>
@kgashok
kgashok / virus.md
Created March 10, 2020 19:28
virus
Virus Source Animal
SARS (2003) China bat / pig
MERS (2012) Middle-East camel
H1N1 (2009) USA (N Carolina) -> Mexico pig (aka swine)
Ebola (2014) Republic of Congo bats, chimpanzees, gorillas, baboons
Zika (1947) Uganda mosquito
Covid-19 (2019) China bat / snake
@kgashok
kgashok / virus.md.html
Last active March 10, 2020 19:26
virus
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--<meta name="viewport" content="width=device-width, initial-scale=1.0">-->
<title>virus</title>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
@kgashok
kgashok / HuffmanCoding.py
Created December 31, 2019 11:08 — forked from bhrigu123/HuffmanCoding.py
Code for Huffman Coding, compression and decompression. Explanation at http://bhrigu.me/blog/2017/01/17/huffman-coding-python-implementation/
import heapq
import os
class HeapNode:
def __init__(self, char, freq):
self.char = char
self.freq = freq
self.left = None
self.right = None
@kgashok
kgashok / mutableTuple.py
Last active June 3, 2019 17:13
"Tuples are immutable, but their mutable constituents, if any, are mutable!"
tup1 = (1, 2, [3, 4, 5])
print(tup1)
print("Tuples are immutable, but their mutable constituents, if any, are mutable!")
tup1[2][2] = 'x'
print(tup1)
# (1, 2, [3, 4, 'x'])
################################################################################################################################
# Author: Naveenkumar Ramaraju #
# Hidden Decision Trees #
# Based on article: http://www.datasciencecentral.com/profiles/blogs/state-of-the-art-machine-learning-automation-with-hdt #
# Date: Feb-18-2017 #
# File version - 1 #
# pyhton - version: 3.6 #
#########################################################################################################################
@kgashok
kgashok / bookmarkletCD.md
Last active November 27, 2018 05:24
bookmarkletCreation.md

Bookmarklet for Custom Starting Points

  1. Create a duplicate bookmark by copy-pasteing an existing bookmark on your bookmark bar. The newly created bookmark will serve as a placeholder for putting in some bookmarklet JavaScript code.
    • Edit the bookmark and change the Name to CustomCD or whatever you might prefer to call it. You may choose to skip this step and edit the name when you update the URL in step 4 below.
  2. Select the below Javascript code by starting your cursor from before the javacript keyword all the way to the () at the very end. Copy the selection into your Clipboard by using Ctrl-C.
  3. Right-click on the CustomCD bookmark from Step 2 and choose "Edit".
  4. Paste the JS code (use Ctrl-V) directly into the dialog box referred to as "URL"
  5. If you haven't change the "Name" of the bookmark, edit that before you Save the bookmark.
@kgashok
kgashok / enco.html
Created August 29, 2018 04:46
ENCO Literary Challenge
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--<meta name="viewport" content="width=device-width, initial-scale=1.0">-->
<title>ENCO Literary Challenge</title>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
@kgashok
kgashok / ENCO Literary Challenge.md
Created August 29, 2018 04:45
ENCO Literary Challenge
<title>ENCO Literary Challenge</title>