Skip to content

Instantly share code, notes, and snippets.


Radhika Ghosal RadhikaG

View GitHub Profile
# See:
# Download this script onto your home directory, ie. whatever is $HOME for you.
# outputs all the commands run to stdout
set -x
echo $HOME
View mnemonic_table_snippet.cpp
static const char *const MnemonicTable =
View X86MachineInstrPrinter.cpp
#include "X86.h"
#include "X86InstrInfo.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/Target/TargetRegisterInfo.h"
using namespace llvm;
#define X86_MACHINEINSTR_PRINTER_PASS_NAME "Dummy X86 machineinstr printer pass"
RadhikaG / Crime Data Visualization-Blog Version.ipynb
Created January 24, 2016 20:38
An IPython notebook for visualizing crime data for India, the United States, France, and the Netherlands.
View Crime Data Visualization-Blog Version.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
RadhikaG /
Last active December 13, 2017 04:04
A class to demonstrate the different operations on heaps.
def parent(i):
return i/2
def left(i):
return 2*i
def right(i):
return (2*i + 1)
class Heap:
RadhikaG /
Last active December 13, 2016 13:57
A short script to demonstrate the different operations on heaps.
global heap
global currSize
def parent(i): #returns parent index of ith index
return i/2
def left(i): #returns left child of ith index
return 2*i
def right(i): #returns right child of ith index