Skip to content

Instantly share code, notes, and snippets.

import requests
import pandas as pd
from datetime import datetime, timedelta
# API Key and URL
API_KEY = 'GET_YOUR_OWN'
url = "https://api.marketstack.com/v1/eod"
# Calculate date range (last 30 days)
today = datetime.today().strftime('%Y-%m-%d')
@ssrihari
ssrihari / clojure-learning-list.md
Last active January 3, 2026 18:12
An opinionated list of excellent Clojure learning materials

An opinionated list of excellent Clojure learning materials

These resources (articles, books, and videos) are useful when you're starting to learn the language, or when you're learning a specific part of the language. This an opinionated list, no doubt. I've compiled this list from writing and teaching Clojure over the last 10 years.

  • 🔴 Mandatory (for both beginners and intermediates)
  • 🟩 For beginners
  • 🟨 For intermediates

Table of contents

  1. Getting into the language
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# This example shows one way to access subsets of CEDEN data via the California Open Data Portal API (it's not
# necessarily the only or best way though) - if you find any problems or have questions, please contact: david.altare@waterboards.ca.gov
# This example applies to the following CEDEN datasets, which have been split into separate
# resources by year (due to file size limitations)
# Water Chemistry: https://data.ca.gov/dataset/surface-water-chemistry-results
# Habitat: https://data.ca.gov/dataset/surface-water-habitat-results
# Tissue: https://data.ca.gov/dataset/surface-water-aquatic-organism-tissue-sample-results
# It assumes that you have your own API key saved in a system environment variable
@daltare
daltare / ceden_arrow_files_example.r
Last active November 1, 2022 21:34
CEDEN Arrow Files Example
# This example shows how to work with CEDEN data in the Apache parquet file format, using the arrow package in R
# The data (in parquet file format) for each type of CEDEN data is available on the California Open Data Portal at the
# following links:
# Water Chemistry: https://data.ca.gov/dataset/surface-water-chemistry-results/resource/f4aa224d-4a59-403d-aad8-187955aa2e38
# Habitat: https://data.ca.gov/dataset/surface-water-habitat-results/resource/0184c4d0-1e1d-4a33-92ad-e967b5491274
# Tissue: https://data.ca.gov/dataset/surface-water-aquatic-organism-tissue-sample-results/resource/dea5e450-4196-4a8a-afbb-e5eb89119516
# Toxicity: https://data.ca.gov/dataset/surface-water-toxicity-results/resource/a6c91662-d324-43c2-8166-a94dddd22982
# Benthic Macroinvertebrates: https://data.ca.gov/dataset/surface-water-benthic-macroinvertebrate-results/resource/eb61f9a1-b1c6-4840-99c7-420a2c494a43
# load packages
@raulqf
raulqf / Install Tensorflow2 with GPU - Ubuntu 24.04.md
Last active December 30, 2025 04:46
Install Tensorflow2 with GPU - Ubuntu 24.04

Install Tensorflow2 with GPU in Ubuntu 24.04

Installation of Tensorflow2 with GPU support is easy and the only complication can be arisen from the CUDA compability which in turns depends on the Nvidia driver version. Before going farther, please check if your Nvidia Video Card is compatible with the required versions that are defined in this gist, use this link.

Tensorflow offers in its website a table of the compatibility between libraries for the target OS. You can visit that website in the following COMPATIBILITY TABLE that points to the Tensorflow installation from source for linux. For the time writing this gist, Tensorflow2 v2.17.0 requires CUDA v12.3 and CUDNN v8.9. As CUDA v12.6 gives support for Ubuntu 24.04, I've replaced CUDA v12.3 with CUDA v12.6, but maintaining CUDNN v8.9. It is really important to match the exact version of CUDNN, otherwise tensorflow will have proble

@IanColdwater
IanColdwater / twittermute.txt
Last active December 6, 2025 11:37
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@chronitis
chronitis / jupyter_kernel_list.md
Last active November 4, 2025 12:51
Updated Jupyter Kernels page

What is a kernel?

The kernel lets you run code in a particular programming language using one of the Jupyter tools, such as the Notebook, Jupyterlab or nteract. Installing additional kernels will let you run code in more languages using your existing jupyter installation.

Technically, the kernel is an application which speaks the Jupyter Messaging Protocol, to receive code input from the frontend and respond with the results.

Which kernels do I have installed?

In the Notebook or JupyterLab, the list of available kernels will be shown when trying to create a new notebook.

@aparrish
aparrish / understanding-word-vectors.ipynb
Last active December 18, 2025 05:55
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@opieters
opieters / gallery_creator.py
Last active July 24, 2025 16:49
Python script to generate configuration for a lightGallery photo gallery in Jekyll.