Skip to content

Instantly share code, notes, and snippets.

View linanqiu's full-sized avatar

Linan Qiu linanqiu

View GitHub Profile
@linanqiu
linanqiu / demo.py
Last active January 30, 2016 01:42
Census Population Query Usage
import census
# say we want to get the number of females asians between 40 and 45 in Ohio, presented by county
# instead of
census.query(
'name'=['PCT0120147', 'PCT0120148', 'PCT0120149', 'PCT0120150', 'PCT0120151']
'geo': {'state': 'OH', 'county': '*'})
# oh and the table will be retuned separately for 41 year olds, 42 year olds etc.
# we have
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const request = require('request');
const async = require('async');
const _ = require('lodash');
const URL_API = 'http://52.27.140.147:9099/maze';
function getMaze(mazeDefinition, solveCallback) {
let width = mazeDefinition.width;
let height = mazeDefinition.height;
let id = mazeDefinition.id;