Skip to content

Instantly share code, notes, and snippets.

Avatar

Max G jgoldfar

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jgoldfar on github.
  • I am jgoldfar (https://keybase.io/jgoldfar) on keybase.
  • I have a public key ASD5aeiQ6Rsfi7iBGqtUIsxnsr90wuRsOyxV4zT5A1eQmwo

To claim this, I am signing this object:

@jgoldfar
jgoldfar / qlopt-make-tests
Last active Jan 20, 2019
Output from `make tests` with compiled robypoteau/qlopt source code
View qlopt-make-tests
/home/jgoldfar/Documents/research/paramid/qlopt/bin/lotkaVolterraWithType2RegsExample; /home/jgoldfar/Documents/research/paramid/qlopt/bin/lotkaVolterraExample; /home/jgoldfar/Documents/research/paramid/qlopt/bin/ThreeStepMetabolicNetworkExample;
lt = 101
u = 10 50 120
iteration = 1
OdeInt Time: 9952 ms
alpha = 5e-05
View qrupdate-1.1.2_Makeconf.patch
--- Makeconf.orig 2016-09-20 16:33:23.061756020 +0200
+++ Makeconf 2016-09-20 16:39:47.385547117 +0200
@@ -1,26 +1,26 @@
# set this to your compiler's executable name (e.g. gfortran, g77)
FC=gfortran
# requested flags
-FFLAGS=-fimplicit-none -O3 -funroll-loops
+FFLAGS=-fimplicit-none -march=native -O3 -funroll-loops -lgfortran
# set if you need shared library
FPICFLAGS=-fPIC
View octave-deps-Makefile
SHELL=/bin/bash
PWD=$(shell pwd)
export INSTALLDIR?=$(PWD)/../usr
SRCDEPS=fftw-3.3.7 \
glpk-4.65 \
pcre2-10.31 \
readline-8.0-alpha \
bison-3.0.4 \
curl-7.60.0 \
View ShowIssue.jl
module ShowIssue
mutable struct PtrWrapper
ptr
end
function Base.show(io::IO, v::PtrWrapper)
redirect_stdout(()->nothing, io)
end
end
@jgoldfar
jgoldfar / ODE.ipynb
Created Feb 26, 2017
ODE Build Error
View ODE.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View init.lua
-------------------------------------------------------------------
--Hammerspoon config to replace Cinch & Size-up (Microsoft Windows style) window management for free
--By Jayden Pearse (spartanatreyu)
--Sort of messy, forgive me. Never scripted in lua before
-------------------------------------------------------------------
-------------------------------------------------------------------
--Options, feel free to edit these
-------------------------------------------------------------------
View gen_code.jl
doc"""
`gen_code` rejigs the standard julia `@generate` macro so that it creates a `code`
expression variable that can be extended using the `@code` macro. At the end of
the function it automatically outputs the result.
"""
macro gen_code(f)
#make sure this macro precedes a function definition.
isa(f, Expr) || error("gen_code macro must precede a function definition")
(f.head == :function) || error("gen_code macro must precede a function definition")
View Dockerfile
# Minimal Dockerfile for downloading and running
# generic Linux Julia binaries on Ubuntu 14.04
# Or pick any other distribution and adjust the apt-get lines
FROM ubuntu:14.04
MAINTAINER Tony Kelman <tony@kelman.net>
RUN apt-get update && \
apt-get install git curl -y && \
mkdir -p /home/user/julia && \
curl -s -L https://status.julialang.org/stable/linux-x86_64 | \
@jgoldfar
jgoldfar / README.md
Last active Aug 29, 2015
Yeppp.jl Test
View README.md

A bit interested in @ViralBShah's announcement on julia-users about Yeppp.jl and had to take a look at possible performance improvements in a project I am working on. Looks like his assessment is about right, based on the two implemented test functions here.

-------
With log:
elapsed in Yeppp: 2.152373e-02
elapsed in Julia, vectorized: 1.557364e-01. Yeppp speedup: 7.235570e+00
elapsed in Julia, devectorized: 1.428047e-01. Yeppp speedup: 6.634756e+00
-------
-------