Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Wallace Louwrens mikewl

View GitHub Profile
@mikewl
mikewl / # zsh - 2018-11-20_17-16-59.txt
Created Nov 20, 2018
zsh on macOS 10.14.1 - Homebrew build logs
View # zsh - 2018-11-20_17-16-59.txt
Homebrew build logs for zsh on macOS 10.14.1
Build date: 2018-11-20 17:16:59
@mikewl
mikewl / # zsh - 2018-11-20_17-16-59.txt
Created Nov 20, 2018
zsh on macOS 10.14.1 - Homebrew build logs
View # zsh - 2018-11-20_17-16-59.txt
Homebrew build logs for zsh on macOS 10.14.1
Build date: 2018-11-20 17:16:59
View gist:9c644213ed1aa221c121b7ca201e629b
micha@THEMISUSED MINGW64 /c/julia/usr/bin
$ ldd libgit2.dll
ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ff900670000)
KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ff900440000)
KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll (0x7ff8fccf0000)
??? => ??? (0x6cac0000)
??? => ??? (0x7ff8fe3e0000)
??? => ??? (0x7ff8fdc70000)
??? => ??? (0x7ff8f2ad0000)
??? => ??? (0x7ff9003e0000)
View GPUGA.jl
#setup GPUArrays and CUDA backend
#using CUDAnative
using GPUArrays
CUBackend.init()
#overload for simple julia side work
import Base: <,>,==
#constants used in evolution
const absMax = 5.0f0
View GPUGApartial.jl
#setup GPUArrays and CUDA backend
#using CUDAnative
using GPUArrays
JLBackend.init()
using StaticArrays
#overload for simple julia side work
import Base: <,>,==
View Minimal_example.jl
#setup GPUArrays and CUDA backend
using CUDAnative
using GPUArrays
CUBackend.init()
const absMax = 5
struct Individual
chromosome::Vector{Float32}
@mikewl
mikewl / GA.jl
Created Aug 8, 2017
Genetic Algorithm
View GA.jl
import Base: <,>,==
const MR = 0.3
const MA = 0.2
const XR = 0.5
const T_SIZE = 20
const L = 30
const S = 200
const G = 100
View Cloud Allowing edit
/* Connect to Spark Cloud by default */
bool FIRST_RUN_NO_HANDSHAKE = false;
//#define ENABLE_CLOUD
#ifdef ENABLE_CLOUD
SPARK_SOCKET_HANDSHAKE = 1;
#else
SPARK_SOCKET_HANDSHAKE = 0;
FIRST_RUN_NO_HANDSHAKE = true;
#endif