Skip to content

Instantly share code, notes, and snippets.

View basavesh's full-sized avatar
👨‍💻

Basavesh Ammanaghatta Shivakumar basavesh

👨‍💻
View GitHub Profile
@basavesh
basavesh / DoubleNode.java
Created November 9, 2012 08:33
DoubleNode.java
package edu.cmu.cs771.hw1;
/**
* The class DoubleNode holds two pointers and a character. It is used to represent a single node on a double linked list.
* @author songluo
*
*/
public class DoubleNode {
private DoubleNode prev;
private DoubleNode next;
@basavesh
basavesh / RSA.py
Created October 13, 2012 18:06 — forked from avalonalex/RSA.py
A implementation of RSA public key encryption algorithms in python
import random
import math
import copy
def euclid(a,b):
'''returns the Greatest Common Divisor of a and b'''
a = abs(a)
b = abs(b)