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
<!-- | |
In your AndroidManifest.xml, designate the class that will handle creating a shortcut. | |
--> | |
<activity android:name=".CreateShortcut" | |
android:label="Name To Appear on the Shortcuts Menu" | |
> | |
<intent-filter> | |
<action android:name="android.intent.action.CREATE_SHORTCUT" /> |
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
$ mongo | |
MongoDB shell version: 1.4.0 | |
url: test | |
connecting to: test | |
type "help" for help | |
> use drumbone | |
switched to db drumbone | |
> db.legislators.update({}, {$unset: {resolutions_sponsored: 1}}, false, true) | |
Invalid modifier specified $unset | |
> |
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 ruby | |
filename = ARGV.first | |
if filename.nil? or filename == "" | |
puts "Provide the filename of the CSV file with disbursement details as an argument." | |
exit | |
end | |
begin |
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
## Methods dealing with Govtrack's KML exporter for states and congressional districts. | |
# Used to generate map files for a couple of Sunlight's projects, Politiwidgets and the | |
# Congress app for Android. | |
## You can also just download individual maps at GovTrack's page about all this: | |
# http://www.govtrack.us/embed/googlemaps.xpd | |
# This script is useful if you want to generate many programmatically. | |
# It also swaps out the default '0' placemark name for something minimally descriptive. | |
## This file isn't runnable, and just contains some methods. |
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
<Grid x:Name="HouseSpinner" Background="Transparent" Margin="0,-80,0,0"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="Auto" /> | |
<ColumnDefinition Width="*" /> | |
</Grid.ColumnDefinitions> | |
<Canvas Grid.Column="0" RenderTransformOrigin="0.5,0.5" Width="120" Height="120"> | |
<Canvas.RenderTransform> | |
<TransformGroup> | |
<ScaleTransform x:Name="SpinnerScale" ScaleX="0.3" ScaleY="0.3" /> |
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
# Meant for /etc/udev/rules.d/51-android.rules | |
# Google [*not* HTC] (i.e. Nexus One) | |
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666" | |
# Samsung (i.e. Galaxy Tab) | |
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666" |
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
{"video":{ | |
"duration":54300, | |
"legislative_day":"2010-09-29", | |
"timestamp_id":"1285743600", | |
"clip_urls":{ | |
"wmv":"http://podcache-101.granicus.com/clerkhouse/clerkhouse_65407972-5a81-4441-b0d8-5bbdb7c969c1.wmv", | |
"mp3":"http://podcache-101.granicus.com/clerkhouse/clerkhouse_65407972-5a81-4441-b0d8-5bbdb7c969c1.mp3", | |
"mp4":"http://podcache-101.granicus.com/clerkhouse/clerkhouse_65407972-5a81-4441-b0d8-5bbdb7c969c1.mp4" | |
} | |
"clips":[{ |
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
{ | |
"amendments": [ | |
{ | |
"actions": [ | |
{ | |
"text": "Amendment SA 4843 proposed by Senator Bingaman for Senator Rockefeller.", | |
"acted_at": "2010-12-17T12:00:00Z", | |
"type": "action" | |
}, | |
{ |
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
// /api/v1/bills.json?apikey=[yourKey]§ions=_id,bill_id | |
{ | |
"bills": [ | |
{ | |
"_id": "4d288a0ee433b27bc6000006", | |
"bill_id": "hr217-112" | |
}, | |
{ | |
"_id": "4d288a0ee433b27bc6000001", | |
"bill_id": "hr212-112" |
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
function breadcrumbs(options, callback) { | |
if (!options) options = {}; | |
items = new NavigationBuilder(); | |
if (callback) | |
callback(items); | |
... | |
} |