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 python3 | |
import codecs | |
from collections import defaultdict | |
from math import log | |
import os | |
items_by_target = defaultdict(list) | |
count_by_item = defaultdict(int) | |
total_item_count = 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
int redPin = 9; | |
int greenPin = 10; | |
int bluePin = 11; | |
int analogPin = 3; | |
int val = 0; | |
void setup() | |
{ | |
pinMode(redPin, OUTPUT); // sets the pin as output | |
pinMode(greenPin, OUTPUT); |
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/evn python | |
import xml.sax | |
class SBLGNTParser(xml.sax.handler.ContentHandler): | |
"""Class to parse the SBL GNT XML file""" | |
def __init__(self, parent): | |
self.init_meta_data() | |
self.parent = parent |
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
<VirtualHost *:80> | |
ServerName api.ossandbox.info | |
ServerAdmin nathan@ndansmith.net | |
<Location "/"> | |
SetHandler python-program | |
PythonHandler django.core.handlers.modpython | |
SetEnv DJANGO_SETTINGS_MODULE openscriptures.settings | |
PythonDebug On | |
PythonPath "['/home/ndansmith/django', '/home/ndansmith/django/openscriptures'] + sys.path" | |
Allow from all |