d3js: Create an HTML table using d3.js and JSON
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
import streamlit as st | |
import pandas as pd | |
# Load some example data. | |
DATA_URL = \ | |
"http://s3-us-west-2.amazonaws.com/streamlit-demo-data/uber-raw-data-sep14.csv.gz" | |
data = st.cache(pd.read_csv)(DATA_URL, nrows=1000) | |
# Select some rows using st.multiselect. This will break down when you have >1000 rows. | |
st.write('### Full Dataset', data) |
In your command-line run the following commands:
brew doctor
brew update
In your command-line run the following commands:
brew doctor
brew update
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
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
# Initialize git and git-annex | |
$ mkdir annex-gcs-test | |
$ cd annex-gcs-test/ | |
$ git init | |
Initialized empty Git repository in /Users/jterrace/annex-gcs-test/.git/ | |
$ git annex init "my machine" | |
init my machine ok | |
(Recording state in git...) | |
# Set up AWS credentials |
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
class ReportEvery(Callback): | |
def __init__(self, report_every=10): | |
super(Callback, self).__init__() | |
self.report_every = report_every | |
def on_epoch_end(self, epoch, logs={}): | |
if (epoch % self.report_every == 0): | |
loss = logs['loss'] | |
print(f'Epoch: {epoch} - loss {loss}') |
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 = 'mymul' | |
g = tf.get_default_graph() | |
g.unique_name(name) # return 'mymul' | |
g.unique_name(name_ # return 'mymul_1' | |
NewerOlder