Skip to content

Instantly share code, notes, and snippets.

Thomas Guymer Guymer

Block or report user

Report or block Guymer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View convergence.cfg
# Specify output settings ...
set output "convergence.svg"
set terminal svg size 750, 550 enhanced mouse jsdir "/js" rounded dashed
# Specify plot settings ...
set key left top Left opaque reverse box samplen 1 width -5
set grid
set title "Convergence Of Different Methods"
set xlabel "Step Number"
set ylabel "Fraction Of Dataset That Is Accessible [%]"
@Guymer
Guymer / zpool.out
Created Jul 26, 2019
zpool status output
View zpool.out
pool: pool1
state: ONLINE
scan: scrub repaired 0 in 0 days 07:27:52 with 0 errors on Fri Jul 12 11:44:41 2019
config:
NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
raidz1-0 ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada2 ONLINE 0 0 0
@Guymer
Guymer / checkCities.out
Created Jul 21, 2019
output from checkCities.py
View checkCities.out
Córdoba (ESP) is at -4.8° and should be UTC+23:34 but it is actually UTC+01:00 because noon occurs 00:26 after 12:00 UTC.
Denver (USA) is at -105.0° and should be UTC+16:54 but it is actually UTC+17:00 because noon occurs 07:06 after 12:00 UTC.
Kashgar (CHN) is at 76.0° and should be UTC+04:58 but it is actually UTC+08:00 because noon occurs 19:02 after 12:00 UTC.
Beijing (CHN) is at 116.4° and should be UTC+07:38 but it is actually UTC+08:00 because noon occurs 16:22 after 12:00 UTC.
Lisbon (PRT) is at -9.1° and should be UTC+23:17 but it is actually UTC+00:00 because noon occurs 00:43 after 12:00 UTC.
Madrid (ESP) is at -3.7° and should be UTC+23:37 but it is actually UTC+01:00 because noon occurs 00:23 after 12:00 UTC.
London (GBR) is at -0.1° and should be UTC+23:51 but it is actually UTC+00:00 because noon occurs 00:09 after 12:00 UTC.
@Guymer
Guymer / background-images-of-elevation-images.json
Created Jul 7, 2019
the database for background images of elevation
View background-images-of-elevation-images.json
{
"0000m-1000m": {
"0000m-1000m": "0000m-1000m.png",
"0000m-1000m0512px": "0000m-1000m0512px.png",
"0000m-1000m1024px": "0000m-1000m1024px.png",
"0000m-1000m2048px": "0000m-1000m2048px.png",
"0000m-1000m4096px": "0000m-1000m4096px.png",
"__comment__": "A 30-arc-second (1-km) gridded, quality-controlled global Digital Elevation Model (DEM)",
"__projection__": "PlateCarree",
"__source__": "https://www.ngdc.noaa.gov/mgg/topo/globe.html"
@Guymer
Guymer / background-images-of-elevation-process.py
Last active Aug 4, 2019
a script to create background images of elevation
View background-images-of-elevation-process.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
# Import modules ...
# NOTE: http://matplotlib.org/faq/howto_faq.html#matplotlib-in-a-web-application-server
import json
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot
import numpy
@Guymer
Guymer / Doxyfile
Last active Feb 16, 2019
Doxygen Issue 3461
View Doxyfile
# Doxyfile 1.8.14
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
#
# All text after a double hash (##) is considered a comment and is placed in
# front of the TAG it is preceding.
#
# All text after a single hash (#) is considered a comment and will be ignored.
# The format is:
@Guymer
Guymer / func_overall_index.f90
Created Jan 9, 2019
a demonstration of linearizing nested do-loop indexes (for use with MPI)
View func_overall_index.f90
MODULE foo
USE ISO_FORTRAN_ENV
IMPLICIT NONE
INTERFACE func_overall_index
MODULE PROCEDURE func_overall_index_2loops
MODULE PROCEDURE func_overall_index_3loops
MODULE PROCEDURE func_overall_index_4loops
MODULE PROCEDURE func_overall_index_5loops
@Guymer
Guymer / skewnorm-mwe.csv
Created Dec 26, 2018
skewnorm MWE output
View skewnorm-mwe.csv
-5.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-4.990000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-4.980000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-4.970000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-4.960000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-4.950000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-4.940000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-4.930000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-4.920000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
-4.910000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
@Guymer
Guymer / skewnorm-mwe.py
Created Dec 26, 2018
skewnorm MWE script
View skewnorm-mwe.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# NOTE: This script was run with NumPy version 1.7.1 (and 1.15.3)
# NOTE: This script was run with SciPy version 0.12.1 (and 1.1.0)
# NOTE: SciPy reference: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skewnorm.html (retrieved 2018-11-29)
# NOTE: Wolfram reference: https://reference.wolfram.com/language/ref/SkewNormalDistribution.html (retrieved 2018-11-29)
# Import modules ...
import matplotlib
@Guymer
Guymer / rss_checker.json
Created Dec 26, 2018
the JSON database for rss_checker.py
View rss_checker.json
{
"feeds": {
"http://updating.kojevnikov.com/atom/ports": [
"http://updating.kojevnikov.com/entry/8e1ed6e2b38be47eab3e4d433073b80477fb9190d77192e6b62e411feb70d790",
"http://updating.kojevnikov.com/entry/9b3c43c14a569550fef365b746a01f38d6c93d7bf98adfd02514dfa2a04ab3cf",
"http://updating.kojevnikov.com/entry/75aaf4e5d7e7d88ebaa1786841cfda27f18c1e12517816f8b405ecbc07aa0d23",
"http://updating.kojevnikov.com/entry/847d0f9a75de85d2207b02963a701ebfa56dbd7bb9bd86c384a5caf94da3f760",
"http://updating.kojevnikov.com/entry/3c5d0cf2c3b838278980e3b1fbce4ac70171814e897211636ee273c59beb28ef",
"http://updating.kojevnikov.com/entry/be1f0245edfaf5a53c6c49d889584dd637426d4109e6e19c84f3864212dbb196",
"http://updating.kojevnikov.com/entry/9092af7b0b3ebe89eb374cef69debb511d6a3f6ff1e93bb6af98183275e1bdcc",
You can’t perform that action at this time.