This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
class Balance(object): | |
def __init__(self, ident): | |
# Balance identifer | |
self.ident = ident | |
# Left/right hand weights | |
self.wl = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; .emacs | |
;; Kill those stupid startup messages | |
(setq inhibit-startup-message t) | |
;; Disable menubar, toolbar, and scrollbars | |
(menu-bar-mode -1) | |
(tool-bar-mode -1) | |
(scroll-bar-mode -1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cmthunes@bc1b3 wikisearch]$ ./wikisearch rpn arithmetic addition enter hp | |
Select done. | |
Categorize done. | |
Articles: | |
0.0099 HP-10 | |
0.0093 Elementary operations | |
0.0076 List of WebOS devices | |
0.0072 HP BASIC | |
0.0066 HP Deskjet F300 all-in-one series |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package edu.ncsu.sdc.wikisearch.jobs; | |
import java.io.*; | |
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.io.*; | |
import org.apache.hadoop.mapreduce.*; | |
import edu.ncsu.sdc.wikisearch.tables.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
SOURCE_FILE = "/home/cmthunes/enwiki-20120211-pages-meta-current.xml" | |
OUTPUT_FILE = "/mnt/reports/cmthunes/enwiki-20120211.json" | |
def extract_with_delims(s, start_delim, end_delim): | |
start_index = s.find(start_delim) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test source | |
cam0 = cam: | |
cam1 = file:path=/home/christopher/downloads/bright_bottom_spots2.avi | |
test = test: | |
#test = test:width=640,height=480,rate=50 |
NewerOlder