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
| { | |
| "config": { | |
| "axis": {"labelFontSize": 14, "titleFontSize": 14}, | |
| "header": {"labelFontSize": 14, "titleFontSize": 14}, | |
| "legend": {"labelFontSize": 14, "titleFontSize": 14}, | |
| "title": {"align": "center", "fontSize": 32, "offset": 15, "subtitleFontSize": 18} | |
| }, | |
| "title": { | |
| "text": "Casos nuevos, muertes y hospitalizaciones por COVID-19 en Puerto Rico", | |
| "subtitle": "Fuentes: Departamento de Salud de Puerto Rico; CovidTracking.com" |
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
| { | |
| "config": { | |
| "axis": {"labelFontSize": 14, "titleFontSize": 14}, | |
| "header": {"labelFontSize": 14, "titleFontSize": 14}, | |
| "legend": {"labelFontSize": 14, "titleFontSize": 14}, | |
| "title": {"align": "center", "fontSize": 20, "offset": 15}, | |
| "concat": {"spacing": 40}, | |
| "view": {"strokeWidth": 0} | |
| }, | |
| "repeat": { |
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
| { | |
| "config": { | |
| "axis": {"labelFontSize": 14, "titleFontSize": 14}, | |
| "header": {"labelFontSize": 14, "titleFontSize": 14}, | |
| "legend": {"labelFontSize": 14, "titleFontSize": 14}, | |
| "title": {"align": "center", "fontSize": 20, "offset": 15}, | |
| "concat": {"spacing": 40}, | |
| "view": {"strokeWidth": 0} | |
| }, | |
| "repeat": { |
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 16 columns, instead of 1 in line 5.
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
| "loanrange","businessname","address","city","state","zip","naicscode","businesstype","raceethnicity","gender","veteran","nonprofit","jobsretained","dateapproved","lender","cd" | |
| a $5-10 million,CARIBBEAN RESTAURANTS LLC,"5 Carr Km 6 Hm 2 Barrio Amelia",GUAYNABO,PR,"00968","722513",Limited Liability Company(LLC),Unanswered,Unanswered,Unanswered,,500,"04/08/2020",Banco Popular de Puerto Rico,PR - 00 | |
| a $5-10 million,CARIBBEAN TEMPORARY SERVICES LLC,PONCE DE LEON 1431 SUITE 701,SANTURCE,PR,"00907","561320",Corporation,Hispanic,Female Owned,Unanswered,,500,"04/28/2020",Oriental Bank,PR - 00 | |
| a $5-10 million,CENTRO MEDICO DEL TURABO INC.,"100 AVE. LUIS MUNOZ MARIN",CAGUAS,PR,"00725","622110",Corporation,Unanswered,Unanswered,Unanswered,,500,"04/27/2020",Banco Popular de Puerto Rico,PR - 00 | |
| a $5-10 million,ENCANTO RESTAURANTS INC,"9615 AVE LOS ROMEROS 200 Montehiedra Office Centre",SAN JUAN,PR,"00926","722513",Corporation,Unanswered,Unanswered,Unanswered,,500,"04/08/2020",Banco Popular de Puerto Rico,PR - 00 | |
| a $5-10 m |
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
| { | |
| "$schema": "https://vega.github.io/schema/vega-lite/v4.8.1.json", | |
| "title": "Negative values in the size channel", | |
| "data": { | |
| "values": [-4, -3, -2, -1, 0, 1, 2, 3, 4] | |
| }, | |
| "transform": [ | |
| {"calculate": "abs(datum.data)", "as": "abs"} | |
| ], | |
| "repeat": ["data", "abs"], |
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
| { | |
| "config": { | |
| "axis": {"labelFontSize": 14, "titleFontSize": 14}, | |
| "header": {"labelFontSize": 14, "titleFontSize": 14}, | |
| "legend": {"labelFontSize": 14, "titleFontSize": 14}, | |
| "title": {"align": "center", "fontSize": 20, "offset": 15} | |
| }, | |
| "data": {"name": "data-1a2ae6c5a330adb8d6b476cc8f14c107"}, | |
| "mark": { | |
| "type": "point", |
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
| { | |
| "$schema": "https://vega.github.io/schema/vega-lite/v4.json", | |
| "data": {"url": "data/cars.json"}, | |
| "transform": [ | |
| { | |
| "aggregate": [{"op": "count", "as": "num_cars"}], | |
| "groupby": ["Origin", "Cylinders"] | |
| } | |
| ], | |
| "encoding": { |
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
| { | |
| "$schema": "https://vega.github.io/schema/vega/v5.json", | |
| "background": "white", | |
| "padding": 5, | |
| "style": "cell", | |
| "data": [ | |
| { | |
| "name": "example-data", | |
| "values": [ | |
| {"y": 5, "value": -1}, |
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
| i x = x s k | |
| where s f g x = f x (g x) | |
| k x y = x | |
| -- Now this gives an epic compilation error... | |
| k = i (i (i i)) | |
| s = i (i (i (i i))) | |
| {- | |
| GHCi, version 7.10.2: http://www.haskell.org/ghc/ :? for help |
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
| {-# LANGUAGE GADTs, ConstraintKinds, KindSignatures, DeriveDataTypeable #-} | |
| {-# LANGUAGE TypeOperators, ScopedTypeVariables, FlexibleInstances #-} | |
| module Shape where | |
| import Control.Applicative ((<$>), (<|>)) | |
| import Data.Maybe (mapMaybe) | |
| import Data.Typeable | |
| import GHC.Exts (Constraint) | |