Skip to content

Instantly share code, notes, and snippets.

Avatar
🏢
New Office, still neck deep in code

Izaak "Zaak" Beekman zbeekman

🏢
New Office, still neck deep in code
View GitHub Profile
View update_travis_ci_status
#!/usr/local/bin/bash
if [ -e ".travis.yml" ]; then
if type ruby > /dev/null 2>&1 && type travis > /dev/null 2>&1; then
stat_file=".travis_status~"
status=$(travis branches 2>&1)
echo "$status" > $stat_file
# Ignore status file from git repo
if ! ([ -e .git/info/exclude ] && grep -q "$stat_file" .git/info/exclude); then
[ -d .git/info ] && echo "$stat_file" >> .git/info/exclude
fi
View update_all_travis_ci_statuses
#!/bin/bash
# (Replace `$HOME/code` with the location of your projects)
for f in $(find /Users/ibeekman -name node_modules -prune -o -follow -maxdepth 3 -name .travis.yml -print 2>/dev/null); do
(builtin cd "$(dirname $f)" && /usr/local/bin/update_travis_ci_status)
done
@zbeekman
zbeekman / json-fortran ifort build.sh
Last active Aug 29, 2015
the log of trying to build with the latest FoBiS.py and json-fortran
View json-fortran ifort build.sh
$ ./build.sh
./build.sh: line 35: -c -O2 -warn -stand f08 -diag-disable 7601 -traceback: command not found
Building library...
Builder options
Building directory: lib/
Compiled-objects .o directory: lib/
Compiled-objects .mod directory: lib/
Compiler class: intel
Compiler: ifort
@zbeekman
zbeekman / nag.patch
Last active Aug 29, 2015
blind attempt at patching segfault for test 6 when using NAG
View nag.patch
diff --git i/src/json_module.f90 w/src/json_module.f90
index 07aca92..1f704e1 100644
--- i/src/json_module.f90
+++ w/src/json_module.f90
@@ -4285,6 +4285,7 @@
![the line is read in chunks until the end of the line is reached]
if (istat==0) then
do
+ isize = 0
read(iunit,fmt=nfmt,advance='NO',size=isize,iostat=istat) chunk
@zbeekman
zbeekman / json_module.diff
Created Mar 11, 2015
Diff showing changes to enable unicode support
View json_module.diff
diff --git a/src/json_module.F90 b/src/json_module.F90
index 3986a22..a3094a4 100644
--- a/src/json_module.F90
+++ b/src/json_module.F90
@@ -120,12 +120,75 @@
! CK
!
! DESCRIPTION
- ! Default character kind.
- ! This is 1 byte for the Intel and Gfortran compilers
@zbeekman
zbeekman / json-fortran.rb
Last active Aug 29, 2015
WIP: homebrew formula for json-fortran
View json-fortran.rb
class JsonFortran < Formula
desc "A Fortran 2008 JSON API"
homepage "https://github.com/jacobwilliams/json-fortran"
url "https://github.com/jacobwilliams/json-fortran/archive/4.1.1.tar.gz"
sha256 "97f258d28536035ef70e9ead5c7053e654106760a12db2cc652587ed61b76124"
head "https://github.com/jacobwilliams/json-fortran.git"
option "with-unicode-support", "Build json-fortran to support unicode text in json objects and files"
option "without-test", "Skip running build-time tests (not recommended)"
View FLAP makefile problem
$ make
Compiling IR_Precision.F90
Compiling Data_Type_Command_Line_Interface.F90
Compiling Test_Driver.f90
Assembling Test_Driver/TEST_DRIVER
duplicate symbol ___data_type_command_line_interface_MOD___copy_LOGICAL_4_ in:
Test_Driver/obj/Data_Type_Command_Line_Interface.o
Test_Driver/obj/data_type_command_line_interface.o
duplicate symbol ___data_type_command_line_interface_MOD___copy_INTEGER_1_ in:
Test_Driver/obj/Data_Type_Command_Line_Interface.o
View json_module.F90.gcov
-: 0:Source:/Users/ibeekman/Sandbox/json-fortran/src/json_module.F90
-: 0:Graph:CMakeFiles/jsonfortran.dir/src/json_module.F90.gcno
-: 0:Data:CMakeFiles/jsonfortran.dir/src/json_module.F90.gcda
-: 0:Runs:11
-: 0:Programs:1
-: 1:!*****************************************************************************************
-: 2:!> author: Jacob Williams
-: 3:! license: BSD
-: 4:!
-: 5:!# JSON-Fortran:
View json_module.F90.gcov.md

Coverage analysis of json_module.F90

Metrics Analysis
Number of executable lines 1458
Number of executed lines 1192 82%
Number of unexecuted lines 266 18%
Number of average hits per executed lines 329899
Number of procedures 162
Number of executed procedures 0 0%
View CAF_API.txt.diff
diff --git a/master:CAF_API.txt b/branch-1.0.0:CAF_ABI.txt
index 39fe7cf..c2d6898 100644
--- a/master:CAF_API.txt
+++ b/branch-1.0.0:CAF_ABI.txt
@@ -1,83 +1,74 @@
-DRAFT DOCUMENT FOR A COARRAY API DEFINTION
+[This document is formatted with GitHub-Flavored Markdown. ]:#
+[For better viewing, including hyperlinks, read it online at ]:#
+[https://github.com/sourceryinstitute/opencoarrays/blob/master/CAF_API.md]:#