Skip to content

Instantly share code, notes, and snippets.

View chrisb13's full-sized avatar

Christopher Bull chrisb13

View GitHub Profile
@chrisb13
chrisb13 / TasmanSeaBoxPlot.py
Last active January 25, 2019 16:54
NOW code for Tasman Sea boxplot
if paper_case=='20170113_EACnowClimateChange01':
section_description_dict=collections.OrderedDict()
section_description_dict['AB']=[ 60, 61,217,226,0,54,'zonal' ]
section_description_dict['BC']=[ 60, 61,226,303,0,54,'zonal' ]
section_description_dict['GD']=[ 85,128,311,312,0,54,'meridional' ]
section_description_dict['FE']=[127,128,239,247,0,54,'zonal' ]
section_description_dict['ED']=[127,128,247,311,0,54,'zonal' ]
section_description_dict['IH']=[ 46,58 ,212,213,0,54,'meridional' ]
section_description_dict['JK']=[ 85,86 ,224,231,0,54,'zonal' ]
section_description_dict['PQ']=[ 68,80 ,212,213,0,54,'meridional' ]
@chrisb13
chrisb13 / cosima.py
Created April 16, 2025 03:29
quick script to download csv file of all github repos associated with an organisation
import requests
import csv
# GitHub API URL for the COSIMA organization repositories
url = "https://api.github.com/orgs/cosima/repos"
# Function to fetch all repositories with pagination
def fetch_all_repos(url):
repos = []
while url: