- Windows: no installation necessary
- Mac
- Run
brew update
- Run
brew install unixodbc
- Run
- Linux
- Run
apt-get update
{ | |
"datasets": [ | |
{ | |
"name": "The Museum of Modern Art (MoMA) Collection", | |
"url": "https://github.com/MuseumofModernArt/collection" | |
}, | |
{ | |
"name": "Coronavirus (Covid-19) Data in the United States", | |
"url": "https://github.com/nytimes/covid-19-data" | |
}, |
set $namespace="%SYS" do ##class(Security.SSLConfigs).Create("ssl") set r=##class(%Net.HttpRequest).%New(),r.Server="pm.community.intersystems.com",r.SSLConfiguration="ssl" do r.Get("/packages/zpm/latest/installer"),$system.OBJ.LoadStream(r.HttpResponse.Data,"c") |
# get the data from https://data.boston.gov/dataset/crime-incident-reports-august-2015-to-date-source-new-system | |
badfile = open('bostonpolice.csv', 'r') | |
betterfile = open('tmp.csv', 'w') | |
while True: | |
line = badfile.readline().strip() | |
if not line: | |
break | |
# figure out if the line has been broken incorrectly |
import pyodbc | |
from flask import Flask | |
from flask import request | |
from flask import render_template | |
import json | |
app = Flask(__name__) | |
connection = None | |
# default route | |
@app.route('/') |
/// ObjectScript does not include any built-in method for appending one JSON dynamic array to another. | |
/// This is equivalent to the JavaScript concat() method. | |
/// Call it with any number of arguments to concatenate them into a new array. | |
/// If an argument is a dynamic array, its elements will be added. Otherwise the argument itself will be added. | |
/// Thanks to Pravin Barton in this article https://community.intersystems.com/post/code-sample-concatenate-json-arrays | |
ClassMethod ConcatArrays(pArgs...) As %DynamicArray | |
{ | |
set outArray = ##class(%DynamicArray).%New() // or [] | |
for i=1:1:pArgs { | |
set arg = pArgs(i) |
ROUTINE RightTriangle | |
/* compute area and hypotenuse of a right triangle | |
this routine contains examples of | |
new ObjectScript features */ | |
Write !, "Compute the area and hypotenuse of a right triangle", | |
!, "given the lengths of its two sides." | |
Set units = "feet" | |
Set side1 = 3 | |
Set side2 = 6 | |
Do Compute( units, side1, side2) |
set file = ##class(%File).%New( "data.csv" ) | |
set sc = file.Open( "R" ) | |
if $$$ISERR(sc) quit ; or do smth | |
while 'file.AtEnd { | |
set str=file.ReadLine() | |
for i=1:1:$length( str, ";" ) { | |
set id=$piece( str, ";" ,i ) | |
write !, id // or do smth | |
} |
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. |