Skip to content

Instantly share code, notes, and snippets.

View crherlihy's full-sized avatar

Christine Herlihy crherlihy

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@crherlihy
crherlihy / appendToGlobalMacro.do
Created December 30, 2015 20:53
Appending variables to a global macro in STATA
//Generate temporary variables
gen temp_1 = 1
gen temp_2 = 2
gen temp_ 3 = 3
//Initialize global macro
global mylist test
//Find all vars that start with var_ and append them to the global macro
@crherlihy
crherlihy / gist:a139d6d32d5bec9abed4
Created November 21, 2015 03:38
Preorder traversal
public static void preOrder (Node root)
{
if(root == null) return;
//inOrder(root.getLeft());
System.out.println(root.toString());
package huffmanTree;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintStream;
import unittest
import os, re, sys
import matplotlib.pyplot as plt
#root_dir= "C://Users//Amir//PycharmProjects//untitled"
#keyword = "keyword"