Skip to content

Instantly share code, notes, and snippets.

View ritwikd's full-sized avatar

Ritwik Dutta ritwikd

View GitHub Profile
@ritwikd
ritwikd / heapsort.py
Created June 16, 2017 07:06
Heapsort in Python
'''Heapsort by Ritwik Dutta'''
class Heap(object):
'''Heap Class'''
def __init__(self, nums=None):
self.nums = nums
def heapify(self, n_index):
''' Heapify at given node'''
@ritwikd
ritwikd / trashtalk.cfg
Created January 22, 2016 04:48
Trashtalk
// TRASHTALK
alias "trashtalker" "trashtalk1"
alias "trashtalk1" "say You only killed me because I ran out of health..; alias trashtalker trashtalk2"
alias "trashtalk2" "say WOW! imagine if your parents weren't siblings.; alias trashtalker trashtalk3"
alias "trashtalk3" "say I PLAY WITH A RACING WHEEL; alias trashtalker trashtalk4"
alias "trashtalk4" "say CS:GO is too hard for you m8 maybe consider a game that requires less skill, like idk.... solitare; alias trashtalker trashtalk5"
alias "trashtalk5" "say Bro you couldn't hit an elephant in the ass with a shotgun with aim like that; alias trashtalker trashtalk6"
alias "trashtalk6" "say You're the human equivalent of a participation award.; alias trashtalker trashtalk7"
alias "trashtalk7" "say server cvar 'sv_rekt' changed to 1.; alias trashtalker trashtalk8"
alias "trashtalk8" "say Was that your spray on the wall or are you just happy to see me?; alias trashtalker trashtalk9"
@ritwikd
ritwikd / autoexec.cfg
Last active April 9, 2018 00:27
CSGO Autoexec
// AUTOEXEC
// MOUSE
sensitivity "2.0"
zoom_sensitivity_ratio_mouse "1.2"
m_rawinput "1"
m_customaccel "0"
m_mouseaccel1 "0"
m_mouseaccel2 "0"
@ritwikd
ritwikd / jam.py
Last active April 30, 2016 22:10
'''Module containing variety of system-jamming functions,
including CPU, RAM, and TCP-based functions'''
from subprocess import Popen
from multiprocessing import Process
import socket
from time import sleep
from time import time as get_time
import os