./manage.py dumpdata --exclude=contenttypes --natural-foreign --natural-primary > datadump.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 requests | |
from requests.models import HTTPBasicAuth | |
from multiprocessing.pool import ThreadPool | |
from tqdm import tqdm | |
def download_url(url): | |
# get file output name from path | |
out_name = url.split("/")[-1] |
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 numpy as np | |
import datetime as dt | |
import os | |
import gdal | |
import netCDF4 | |
# Open .bil dataset | |
ds = gdal.Open('../Download/v2p0chirps201401.bil') # Data location | |
a = ds.ReadAsArray() |
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
FNAME='<firstname>' | |
LNAME='<lastname' | |
LEVEL='students' | |
PASSWORD= '<password>' |
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
#include<stdio.h> | |
int main() | |
{ | |
printf("Hello world\n"); | |
getch(); | |
} | |