An (almost) 1 for 1 of @mbostock's 4063582 with text box sizing adjusted based on size of box.... Found this instead of finishing.
This file contains 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
<h1> I'm a gist!</h1> |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains 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
sdvwef |
This simple line chart is constructed from a TSV file storing the closing value of AAPL stock over the last few years. The chart employs conventional margins and a number of D3 features:
- d3.tsv - load and parse data
- d3.time.format - parse dates
- d3.time.scale - x-position encoding
- d3.scale.linear - y-position encoding
- d3.extent - compute domains
- d3.svg.axis - display axes
- d3.svg.line - display line shape
This file contains 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
[ | |
{ | |
"name": "Yellow", | |
"munsell_hue": "Y", | |
"hex": "#FFFF00", | |
"children": [ | |
{ | |
"name": "Cadmium Yellow Light", | |
"company": "Liquitex", |
This file contains 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
//and a stab at the type file Folder.ts: | |
import { objectType, extendType, arg } from 'nexus' | |
import { isLuminaAdmin } from '../auth' | |
export const Folder = objectType({ | |
name: 'Folder', | |
definition(t) { | |
t.model.id() | |
t.model.name() | |
t.model.parent() | |
t.model.children() |
- download the Natural Earth 1:10m Time Zone Data (GeoJSON available from CartoDB)
- run
topojson --post-quantization 1e3 --simplify 1e-5 --out timezones.json -- ne_10m_time_zones.geojson
The result is this 181 KB timezones.json
(36 KB with gzip)
This file contains 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
// Property stores a relationship to another model/table called Occupancy | |
// Occupancy is a set of projections for each month. Occupancy projections when relevant data is updated... Leases, property leasable sqft, | |
// etc. | |
// The core challenge trying to solve for is that filtering and sorting based on occupancy introduces complexities and will likely be hard to maintain. | |
// The two courses of action are: | |
// 1) deal with complexity of managing relationship to do advanced sorting on property based on "current month" occupancy | |
// 2) create Property.occupancyThisMonth which is updated whenever occupancy is updated AND at the end of each month |