Skip to content

Instantly share code, notes, and snippets.

View mikewl's full-sized avatar

Michael Wallace Louwrens mikewl

View GitHub Profile
/* 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
@mikewl
mikewl / GA.jl
Created August 8, 2017 22:03
Genetic Algorithm
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
#setup GPUArrays and CUDA backend
using CUDAnative
using GPUArrays
CUBackend.init()
const absMax = 5
struct Individual
chromosome::Vector{Float32}
#setup GPUArrays and CUDA backend
#using CUDAnative
using GPUArrays
JLBackend.init()
using StaticArrays
#overload for simple julia side work
import Base: <,>,==
#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
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)
@mikewl
mikewl / # zsh - 2018-11-20_17-16-59.txt
Created November 20, 2018 15:20
zsh on macOS 10.14.1 - Homebrew build logs
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 November 20, 2018 15:22
zsh on macOS 10.14.1 - Homebrew build logs
Homebrew build logs for zsh on macOS 10.14.1
Build date: 2018-11-20 17:16:59