This file contains hidden or 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
# Generates necessary certificates to ~/.docker | |
# | |
# Usage: | |
# bundle install | |
# ruby certgen.rb <domain> | |
require 'certificate_authority' | |
require 'fileutils' | |
if ARGV.empty? |
This file contains hidden or 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
def row_gen_for_source(self, source_name, use_row_spec = True): | |
source = self.metadata.sources[source_name] | |
fn = self.filesystem.download(source_name) | |
if fn.endswith('.zip'): | |
sub_file = source.file | |
fn = self.filesystem.unzip(fn, regex=sub_file) | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
id | dataset | x | y | |
---|---|---|---|---|
0 | I | 10.0 | 8.04 | |
1 | I | 8.0 | 6.95 | |
2 | I | 13.0 | 7.58 | |
3 | I | 9.0 | 8.81 | |
4 | I | 11.0 | 8.33 | |
5 | I | 14.0 | 9.96 | |
6 | I | 6.0 | 7.24 | |
7 | I | 4.0 | 4.26 | |
8 | I | 12.0 | 10.84 |
This file contains hidden or 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 requests | |
def cache_url(url): | |
"""Load a url to a local file, or return the file path if it already exists | |
This function will download the given URL to the current directory, with a file name of the | |
last path element in the URL. """ | |
import os | |
import urlparse | |
from IPython.display import display, clear_output | |
import sys | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
This Ambry Manifest assembles a database of health datasets for the San Diego County HHSA / CHCF code-a-thon | |
NOTE! In version 0.0.2 of the ACS data, the "measure" and "error" files have the | |
names backwards. | |
ambry warehouse -d 'postgis://postgres:frangible234!@warehouse1/db1' install /Users/eric/proj/chcf_codeathon/manifest.txt | |
partitions: | |
census.gov-acs-geo-orig-geofile-20105-0.1.1 |
NewerOlder