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 xml.etree.ElementTree as etree | |
import re | |
from fractions import Fraction | |
from math import floor | |
import sys | |
tree = etree.parse(sys.argv[1]) | |
output_filename = sys.argv[2] | |
root = tree.getroot() |
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 dagger.Component | |
import dagger.Module | |
import dagger.Provides | |
import javax.inject.Inject | |
fun main(args: Array<String>) { | |
val shop = DaggerCoffeeShop.builder().dripCoffeeModule(DripCoffeeModule()).build() | |
shop.maker().makeCoffee() | |
} |
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, argparse | |
from itertools import product, compress, combinations | |
from collections import defaultdict | |
''' | |
So a (valid) word combination is made up of | |
1. a series of words that max out at the target length | |
that for every masked result: | |
2. do _not_ match a previous masked result |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<label for="wordInput"><span>Input String</span></label> |