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
Largest 1000 Cities in America | |
2013 popuation data - Biggest US Cities By Population | |
rank,city,state,population,2000-2013 growth | |
1,New York,New York,8405837,4.8% | |
2,Los Angeles,California,3884307,4.8% | |
3,Chicago,Illinois,2718782,-6.1% | |
4,Houston,Texas,2195914,11.0% | |
5,Philadelphia,Pennsylvania,1553165,2.6% |
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
[ | |
{ | |
"city": "New York", | |
"growth_from_2000_to_2013": "4.8%", | |
"latitude": 40.7127837, | |
"longitude": -74.0059413, | |
"population": "8405837", | |
"rank": "1", | |
"state": "New York" | |
}, |
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 io | |
from flask import Flask, send_file | |
app = Flask(__name__) | |
@app.route('/logo.jpg') | |
def logo(): | |
"""Serves the logo image.""" | |
with open("logo.jpg", 'rb') as bites: |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"gpl": "GPL570", | |
"num_samples": 137981, | |
"title": "[HG-U133_Plus_2] Affymetrix Human Genome U133 Plus 2.0 Array" | |
}, | |
{ | |
"gpl": "GPL13112", | |
"num_samples": 99869, | |
"title": "Illumina HiSeq 2000 (Mus musculus)" |
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>The light is <%= @bulb_status %>.</h1> | |
<button phx-click="on" disabled={!@bulb_on} >On</button> | |
<button phx-click="off" disabled={@bulb_on}>Off</button> |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Semantic UI CDN</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.9/semantic.min.css"/> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.9/semantic.min.js"></script> | |
</head> | |
<body> |
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
# I couldn't find this easily in the documentation or on Google. | |
# Here's how you sort a map in Elixir. | |
# Maps aren't a sorted structure, so the result is a keyword list. | |
input = %{ | |
player_1: %{score: 2}, | |
player_2: %{score: 1}, | |
player_3: %{score: 10} | |
player_4: %{score: 5} | |
} |
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
zappa invoke --raw 'import subprocess; print subprocess.check_output("ls");' |
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 time | |
import datashader as ds | |
import pandas as pd | |
import numpy as np | |
import holoviews as hv | |
from holoviews import opts | |
from colorcet import fire | |
from datashader import transfer_functions as tf | |
from dask import dataframe as dd |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"gpl": "GPL570", | |
"num_samples": 137985, | |
"organism": "Homo sapiens", | |
"title": "[HG-U133_Plus_2] Affymetrix Human Genome U133 Plus 2.0 Array" | |
}, | |
{ | |
"gpl": "GPL13112", | |
"num_samples": 99869, |
NewerOlder