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 main | |
import ( | |
"bufio" | |
"encoding/csv" | |
"encoding/json" | |
"fmt" | |
"io" | |
"os" | |
"path/filepath" |
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 misc; | |
import java.util.Comparator; | |
import java.util.Map; | |
import java.util.TreeMap; | |
public class ArrayTools | |
{ | |
private static class ValueComparator<K , V extends Comparable<V>> implements Comparator<K> | |
{ |
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
public class CodeModelIfForExample { | |
private static final String CLASS_NAME = "TestClass"; | |
public static void main(String args[]) throws Exception{ | |
JCodeModel codeModel = new JCodeModel(); | |
JDefinedClass c = codeModel._class(CLASS_NAME); | |
writeIfElse(codeModel, c); |
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 bisect | |
import itertools | |
import operator | |
class _BNode(object): | |
__slots__ = ["tree", "contents", "children"] | |
def __init__(self, tree, contents=None, children=None): | |
self.tree = tree |
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 | |
# Copyright (c) 2008 Carnegie Mellon University. | |
# | |
# You may modify and redistribute this file under the same terms as | |
# the CMU Sphinx system. See | |
# http://cmusphinx.sourceforge.net/html/LICENSE for more information. | |
import pygtk | |
pygtk.require('2.0') |