AMDGPUnative => ["ROCArrays"]
AbstractAlgebra => ["Ccluster", "IntegerTriangles"]
AbstractMCMC => ["Turing"]
AbstractTrees => ["PDFIO", "PhysOcean"]
ApproxFun => ["EffectiveWaves", "PDSampler"]
ApproxFunBase => ["ApproxFunRational", "Poltergeist", "RiemannHilbert"]
ApproxFunFourier => ["ApproxFunRational"]
ApproxFunOrthogonalPolynomials => ["ApproxFunRational"]
ArgCheck => ["ANOVA", "AltDistributions", "BAT", "ContinuousTransformations", "DarkSky", "FunctionalTables", "GoogleMaps", "HMMBase", "MultistartOptimization", "PolynomialBases", "SimpleIntegrals", "SortedVectors", "SpectralKit", "StataDTAFiles", "TransformVariables"]
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
using HTTP | |
using Dates | |
using Printf | |
using JSON | |
using DataFrames | |
using CSV | |
hbf_location = "53.5527704,10.0065856" |
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
using Makie | |
using AbstractPlotting | |
scene = Scene() | |
scene = mesh(Sphere(Point3f0(0), 0.9f0), transparency=true, alpha=0.05) | |
function cosine_weighted_sample_hemisphere() | |
r1 = rand() |
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
using Makie | |
using AbstractPlotting | |
using FileIO, Colors | |
# Load World Ocean Atlas 2D fields for PO₄, Si(OH)₄, and NO₄ | |
using WorldOceanAtlasTools | |
lat, lon, PO₄_2D = WorldOceanAtlasTools.WOA13_surface_map("p", 0, "1°") | |
lat, lon, NO₄_2D = WorldOceanAtlasTools.WOA13_surface_map("n", 0, "1°") | |
lat, lon, SiOH₄_2D = WorldOceanAtlasTools.WOA13_surface_map("i", 0, "1°") | |
# Add the image layer to each plot |
(Inspired by https://medium.com/@icanhazedit/clean-up-unused-github-rpositories-c2549294ee45#.3hwv4nxv5)
-
Open in a new tab all to-be-deleted github repositores (Use the mouse’s middle click or Ctrl + Click) https://github.com/username?tab=repositories
-
Use one tab https://chrome.google.com/webstore/detail/onetab/chphlpgkkbolifaimnlloiipkdnihall to shorten them to a list.
-
Save that list to some path
-
The list should be in the form of “ur_username\repo_name” per line. Use regex search (Sublime text could help). Search for ' |.*' and replace by empty.
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
# -*- coding: utf-8 -*- | |
import re | |
import urllib | |
from multiprocessing import Pool | |
import requests | |
import progressbar | |
CHUNK_SIZE = 1024 * 1024 # 1MB | |
def download(i): |
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
#!/usr/bin/env python | |
# | |
# author: github.com/jbenet | |
# license: MIT | |
# | |
# tikz2svg: convert tikz input into svg | |
# depends on: | |
# - pdflatex: comes with your tex dist | |
# - pdf2svg: brew install pdf2svg |
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
# Repeat an operation n times, e.g. | |
# @dotimes 100 println("hi") | |
macro dotimes(n, body) | |
quote | |
for i = 1:$(esc(n)) | |
$(esc(body)) | |
end | |
end | |
end |
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 __future__ import division | |
from numpy.fft import rfft | |
from numpy import argmax, mean, diff, log, nonzero | |
from scipy.signal import blackmanharris, correlate | |
from time import time | |
import sys | |
try: | |
import soundfile as sf | |
except ImportError: | |
from scikits.audiolab import flacread |