Skip to content

Instantly share code, notes, and snippets.

View Try2Code's full-sized avatar
🥽
there goes nothing ...

Brian Spilner Try2Code

🥽
there goes nothing ...
  • Monster Inc.
  • Байкаловск
View GitHub Profile
# packages in environment at /home/ram/.miniconda3:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 1_gnu conda-forge
alabaster 0.7.12 py_0 conda-forge
alsa-lib 1.2.3 h516909a_0 conda-forge
babel 2.9.1 pyh44b312d_0 conda-forge
backcall 0.2.0 pyh9f0ad1d_0 conda-forge
backports 1.0 py_2 conda-forge
#!/usr/bin/env bash
# HELPER FUNCTIONS =============================================================
DEBUG='false'
function lt() {
local lowNum=$1
local highNum=$2
if [ 1 -eq $((`echo "$lowNum < $highNum"| bc`)) ]; then
[ 'true' == "${DEBUG}" ] && echo -e "$lowNum < $highNum";
else
[ 'true' == "${DEBUG}" ] && echo -e "$lowNum >= $highNum";
@Try2Code
Try2Code / how_to_use_CDO.jl
Created July 8, 2020 11:34
How to use CDO inside Julia
# {{{ some steps before
# import Pkg
# Pkg.add("PyCall")
# }}}
using PyCall
pycdo = pyimport("cdo")
cdo = pycdo.Cdo()
>> require 'gsl'
TypeError: superclass mismatch for class NMatrix
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/ram/.gem/ruby/2.3.0/gems/nmatrix-0.2.1/lib/nmatrix/nmatrix.rb:38:in `<top (required)>'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
from /home/ram/.gem/ruby/2.3.0/gems/gsl-2.1.0.1/lib/gsl.rb:7:in `<top (required)>'
from /usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require'