- Call me "Tim"
- Be terse. No yapping.
- Suggest solutions I didn't think about—anticipate my needs
- Treat me as an expert
- Be accurate and thorough
- Code first, then detailed explanation; restate query if needed
- No moral lectures
- Discuss safety only when crucial and non-obvious
- Cite sources at the end, not inline
- Omit knowledge cutoff and AI status
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 simplekml | |
kml = simplekml.Kml() | |
df.apply(lambda X: kml.newpoint(name=X["name"], coords=[( X["longitude"],X["latitude"])]) ,axis=1) | |
kml.save(path = "data.kml") |
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
# http://editorconfig.org/#file-format-details | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_size = 4 | |
indent_style = space | |
insert_final_newline = true | |
trim_trailing_whitespace = true |
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
from scipy.stats import dirichlet, poisson | |
from numpy.random import choice | |
num_documents = 5 | |
num_topics = 2 | |
topic_dirichlet_parameter = 1 # beta | |
term_dirichlet_parameter = 1 # alpha | |
vocabulary = ["see", "spot", "run"] | |
num_terms = len(vocabulary) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
data/ | |
.env/ | |
__pycache__ | |
.ipynb_checkpoints |
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
gistup |
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
gistup |
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
gistup |
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
curl http://api.openweathermap.org/data/2.5/weather?q=27560 | /usr/local/bin/jq .main.temp | awk '{print $1 * 9.0 / 5 - 459.67}' OFMT="NC:%2.0f°" |
NewerOlder