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
<dependency> | |
<groupId>com.pivotallabs</groupId> | |
<artifactId>robolectric</artifactId> | |
<version>X.X.X</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> |
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
<dependency> | |
<groupId>com.pivotallabs</groupId> | |
<artifactId>robolectric</artifactId> | |
<version>1.2-SNAPSHOT</version> | |
<scope>test</scope> | |
</dependency> | |
<repositories> |
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 argparse | |
import sys | |
import os | |
INKSCAPE_BIN = '/Applications/Inkscape.app/Contents/Resources/bin/inkscape' | |
LDPI = ('drawable-ldpi', '48') | |
MDPI = ('drawable-mdpi', '72') |
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
from lxml import etree as ET | |
import sqlite3 | |
import os | |
CREATE_ITEMS = 'create table Item (_id integer primary key, Name text, kind integer, calories integer);' | |
CREATE_ITEM_PER_MONTHS = 'create table ItemPerMonth (ItemId integer, Month integer, Freshness integer, Area integer);' | |
CREATE_ITEM_PREFERRED = 'create table PreferredItem (PreferredItemId integer);' | |
file_list = ['fruit.sqlinit'] |
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 argparse | |
import xml.etree.cElementTree as ET | |
import os | |
def is_post(node): | |
t = node.find('{http://www.w3.org/2005/Atom}category').get('term') | |
d = node.find('{http://purl.org/atom/app#}control') | |
return (not d) and (t == 'http://schemas.google.com/blogger/2008/kind#post') |
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 ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net" | |
"syscall" | |
) |