Skip to content

Instantly share code, notes, and snippets.

View jsvcycling's full-sized avatar
🐫
Learning OCaml

Josh Vega jsvcycling

🐫
Learning OCaml
  • Prudential Financial
  • New Jersey, USA
View GitHub Profile
#!/usr/bin/env python3
import csv
import subprocess
import sys
from datetime import date, datetime, timedelta
from sqlalchemy import create_engine
from sqlalchemy.sql import text
#!/usr/bin/env python3
import pandas as pd
import sys
from datetime import date, datetime, timedelta
from sqlalchemy import create_engine
from sqlalchemy.sql import text
BASE_URL = "http://.../raw_data/dl.php?f={}"
# -*- mode: shell-script; -*-
#
# Coova-Chilli Default Configurations.
# To customize, copy this file to /etc/chilli/config
# and edit to your liking. This is included in shell scripts
# that configure chilli and related programs before file 'config'.
HS_LOC_ID="1"
HS_LOC_NAME="xxxxxx"
HS_NASID="xxxxx"
@jsvcycling
jsvcycling / num2str_vs_sprintf.m
Last active April 13, 2018 19:46
Comparison between MATLAB's num2str and sprintf methods.
NUM_ITERS = 100000;
% num2str statistics
num2str_max = -Inf;
num2str_min = Inf;
num2str_sum = 0;
% sprintf statistics
sprintf_max = -Inf;
sprintf_min = Inf;
@jsvcycling
jsvcycling / is_over_land_cartopy.py
Last active March 25, 2018 19:51
Check if a point is over land using Cartopy.
import cartopy.io.shapereader as shapereader
import shapely.geometry as sgeom
MAP_RES = '110m'
MAP_TYPE = 'physical'
MAP_NAME = 'land'
shape_data = shapereader.natural_earth(resolution=MAP_RES, category=MAP_TYPE, name=MAP_NAME)
lands = shapereader.Reader(shape_data).geometries()