Skip to content

Instantly share code, notes, and snippets.

Raj Singh rajrsingh

Block or report user

Report or block rajrsingh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rajrsingh
rajrsingh / acs_income_metadata.tsv
Last active Oct 4, 2018
metadata example for ACS income
View acs_income_metadata.tsv
What 2017 American Community Survey 1-Year Estimates INCOME IN THE PAST 12 MONTHS (IN 2017 INFLATION-ADJUSTED DOLLARS)
When 2017
Where US
Who US Census Bureau
How Survey https://www.census.gov/programs-surveys/acs/about.html
Which I don’t know. Probably custom software built by the Census.
Why Public officials, planners, and entrepreneurs use this information to assess the past and plan the future. When you respond to the ACS, you are doing your part to help your community plan for hospitals and schools, support school lunch programs, improve emergency services, build bridges, and inform businesses looking to add jobs and expand to new markets, and more.
View SF Code Pixiedust.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View PixieDust and PixieApps ODSC 2018.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View NBA Machine Learning POSTGRES.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View NBA Explore-Clean POSTGRES.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rajrsingh
rajrsingh / one-data-set-microdata.html
Last active Mar 28, 2018
A dataset in described with structured metadata in schema.org microdata
View one-data-set-microdata.html
<div itemscope itemtype="http://schema.org/Dataset" itemid="homes-1m-redfin-2016">
<meta itemprop="url" content="http://s3-api.us-geo.objectstorage.softlayer.net/opendata/misc/milliondollarhomes.csv" />
<h2>US Income</h2>
<i>(homes-1m-redfin-2016)</i>
<div class="description">Homes that sold for over a million USD in northeastern Massachusetts in a 3-month period in late 2016.</div>
<div itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
Publisher:
<span itemprop="name">Raj Singh</span>
</div>
<div class="keywords">Keywords: housing,income</div>
@rajrsingh
rajrsingh / one-data-set-json-ld.html
Last active Mar 28, 2018
A dataset in described with structured metadata in JSON-LD
View one-data-set-json-ld.html
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Dataset",
"identifier": "homes-1m-redfin-2016",
"name": "US Income",
"description": "Homes that sold for over a million USD in northeastern Massachusetts in a 3-month period in late 2016.",
"version": "2017-10-03",
"keywords": ["housing","income"],
"distribution": [
@rajrsingh
rajrsingh / google-structured-metadata.js
Last active Mar 28, 2018
Reads a JSON file in the format conforming to US govt CIO open data metadata guidelines and writes an HTML file conforming to Google and schema.org
View google-structured-metadata.js
/**
* Reads a JSON file in the format conforming to the open data metadata guidelines
* promulgated by the US Federal CIO office (https://project-open-data.cio.gov/v1.1/schema/)
* and writes an HTML file conforming to Google and schema.org
* https://developers.google.com/search/docs/data-types/dataset
* http://schema.org/Dataset
*/
var fs = require('fs')
const metadata = require('./meta.json')
View project-opendata-metadata.json
{
"type": "DataCatalog",
"title": "My Data Catalog",
"modified": "2018-02-02",
"accessLevel": "public",
"conformsTo": "https://project-open-data.cio.gov/v1.1/schema",
"datasets": [
{
"@context": "http://schema.org/",
"@type": "dcat:Dataset",
@rajrsingh
rajrsingh / .s3cfg
Created Mar 19, 2018
s3cmd configuration for IBM cloud object storage
View .s3cfg
[default]
access_key = ACCESSKEYGOESHERE
gpg_command = /usr/local/bin/gpg
host_base = s3-api.us-geo.objectstorage.softlayer.net
host_bucket = %(bucket)s.s3-api.us-geo.objectstorage.softlayer.net
secret_key = SECRETKEYGOESHERE
use_https = True
You can’t perform that action at this time.