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'])
@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>
@kgashok
kgashok / replace.html
Last active June 4, 2018 21:51
replaceString
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>replaceRefactorSaga</title>
<link rel="stylesheet" href="https://stackedit.io/style.css" />
</head>
@kgashok
kgashok / importantTopics.html
Created April 6, 2018 15:11
importantTopics-kgashok
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>importantTopics-kgashok</title>
<link rel="stylesheet" href="https://stackedit.io/style.css" />
</head>