README is empty
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
var InputView = require('ampersand-input-view') | |
var BootstrapInputView = InputView.extend({ | |
template: [ | |
'<div class="form-group">', | |
'<label data-hook="label"></label>', | |
'<input class="form-control">', | |
'<div data-hook="message-container" class="message message-below message-error">', | |
'<p data-hook="message-text"></p>', | |
'</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
var Model = require('ampersand-model') | |
var View = require('ampersand-view') | |
var FormTemplate = document.getElementById('form-template').innerHTML | |
var FormModel = Model.extend({ | |
props: { | |
'firstName': 'string', | |
'lastName': 'string' | |
} |
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
<!DOCTYPE html> | |
<html> | |
<body> | |
<div class="container"> | |
{% assign rows = content | split:"@row" %} | |
{% for row in rows %} | |
<div class="row" id="row-{{ forloop.index }}"> | |
{% assign columns = row | split:"@column" %} |
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", | |
"header": { | |
"title": "Crime Incidents in Chicago", | |
"description": "This dataset reflects reported incidents of crime (with the exception of murders where data exists for each victim) that occurred in the City of Chicago from 2001 to present, minus the most recent seven days. Data is extracted from the Chicago Police Department's CLEAR (Citizen Law Enforcement Analysis and Reporting) system. In order to protect the privacy of crime victims, addresses are shown at the block level only and specific locations are not identified.", | |
"navigation": [{ | |
"label": "Download", | |
"url": "https://data.cityofchicago.org/api/views/ijzp-q8t2/rows.csv?accessType=DOWNLOAD&bom=true" | |
}] | |
}, |
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", | |
"header": { | |
"title": "Parking Violations", | |
"description": "This data set reflects parking violations reported by authorized agencies in Philadelphia. The data represented below is a sample of parking violations occurring between 2012-2015 with license plate numbers anonymized for privacy.", | |
"navigation": [ | |
{ | |
"label": "Download", | |
"url": "https://data.phila.gov/api/views/3bxz-a5sb/rows.csv?accessType=DOWNLOAD&bom=true" | |
} |
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", | |
"header": { | |
"title": "VizWit", | |
"description": "Lorem ipsum dolor sit amet" | |
}, | |
"cards": [ | |
{ | |
"x": 0, | |
"y": 0, |
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
KeyValDropdownEditor.prototype.prepare = function () { | |
Handsontable.editors.BaseEditor.prototype.prepare.apply(this, arguments) // call parent method | |
var source = this.cellProperties.source | |
var options | |
Handsontable.Dom.empty(this.select) | |
if (typeof source === 'function') { | |
options = source(this.row, this.col, this.prop) |
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
var Handsontable = require('handsontable') | |
var AmpersandModel = require('ampersand-model') | |
var AmpersandRestCollection = require('ampersand-rest-collection') | |
var _ = require('lodash') | |
var Person = AmpersandModel.extend({ | |
props: { | |
id: 'number', | |
name: 'string', | |
address: 'string' |
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 requests | |
import requests_mock | |
import pprint | |
pp = pprint.PrettyPrinter(indent=4) | |
session = requests.Session() | |
adapter = requests_mock.Adapter() | |
session.mount('mock', adapter) |