Skip to content

Instantly share code, notes, and snippets.

View samusz's full-sized avatar
💭
I may be slow to respond.

Sacha Muszlak samusz

💭
I may be slow to respond.
View GitHub Profile
#define C_SHIFT 1 //01
#define G_SHIFT 2 //10
#define T_SHIFT 3 //11
/**
*
* @param readString: The DNA sequence to be encoded
* @param stringLength : The number of characters in the DNA sequence
* @return uint8_t type array of bits
*/
uint8_t *bitEncode(char *readString, int stringLength) {
using BenchmarkTools
@enum Shape Rock Paper Scissors
function play(a::Shape, b::Shape)
if a == b
return 0
elseif a == Paper && b == Rock
return 1
elseif a == Paper && b == Scissors
using Statistics
using Printf
import Pkg
const JULIA_CMD = Base.julia_cmd()
run_cmd(cmd) = run(`$JULIA_CMD --startup=no --history-file=no -e $cmd`)
const N_STARTUP_RUNS = 5
function run_latency_check()
@samusz
samusz / org-syntax-cheatsheet.org
Created April 16, 2019 21:33 — forked from hoeltgman/org-syntax-cheatsheet.org
Org-mode Syntax Cheat sheet

org-syntax-cheatsheet.org