`
<div>
${indent(JSON.stringify(data, null, 2), 2)}
</div>
`
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
FORMAT: 1A | |
# Dataface | |
Build and manage data with a spreadsheet-like interface. | |
# Group Sheets | |
Resources related to sheets (which is what dataface calls database tables). |
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
SELECT | |
cols.column_name, | |
cols.data_type, | |
cols.character_maximum_length, | |
cols.column_default, | |
cols.is_nullable::boolean, | |
constr.constraint_type, | |
pg_catalog.col_description(cls.oid, cols.ordinal_position::int)::jsonb | |
FROM | |
pg_catalog.pg_class cls, |
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
const html = require('choo/html') | |
const css = require('sheetify') | |
const HyperListComponent = require('./hyperlist-component') | |
const prefix = css` | |
thead, tbody { | |
display: block; | |
} | |
` |
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
version: '2' | |
services: | |
db: | |
image: postgres | |
volumes: | |
- ./scripts/contacts.sql:/docker-entrypoint-initdb.d/contacts.sql | |
ports: | |
- "5432:5432" | |
restart: always | |
environment: |
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
const html = require('choo/html') | |
const component = require('nanocomponent') | |
const menu = require('../components/menu') | |
module.exports = function home (state, emit) { | |
return component({ | |
render: (state, emit) => { | |
return html` | |
<body> |
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
import React from 'react' | |
import 'foundation-sites/dist/css/foundation.css' | |
import TopBar from './TopBar' | |
class Layout extends React.Component { | |
render () { | |
<div className='container'> | |
<TopBar /> | |
{this.props.children} |
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
const html = require('bel') | |
['Hello', 'world'].map((text) => { | |
return html`<p><span>${text}</span></p>` | |
}) |
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
import csv | |
import sys | |
import requests | |
odp_packages_url = 'https://opendataphilly.org/api/3/action/package_search?rows=10000' | |
odp_dataset_prefix = 'https://opendataphilly.org/package/' | |
socrata_keyword = '//data.phila.gov' | |
response = requests.get(odp_packages_url) |
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
const choo = require('choo') | |
const html = require('choo/html') | |
const widget = require('cache-element/widget') | |
const app = choo() | |
app.model({ | |
state: { | |
rows: [ {a: 'a'}, {b: 'b'} ] | |
}, |