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) {
@samusz
samusz / keybase.md
Created August 7, 2020 09:49
Keybase

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

"" from https://github.com/joereddington/dotvimdirectory/blob/master/vimrc at firt, modified then on
call plug#begin('~/.vim/bundle')
Plug 'JuliaEditorSupport/julia-vim'
Plug 'dpelle/vim-Grammalecte'
set nocompatible "doens't try and do what VI does
filetype on
filetype plugin on
syntax on
set lines=35 columns=90 "check these for full screen
set backspace=indent,eol,start "make backspace work properly per https://vi.stackexchange.com/a/2163/8792
@samusz
samusz / .spacemacs
Created July 20, 2020 14:25
My .spacemacs Emacs spacemacs configuration file
; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
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

@samusz
samusz / MoonIntro.rb
Created April 11, 2019 02:40
My first sonic pi attempt. I kinda like it ;)
# Welcome to Sonic Pi v3.1
live_loop :flibble do
sample :ambi_drone, rate: 0.3
# sample :ambi_lunar_land, rate: 0.1
play_chord [60,85,110]*1.5
sample :bd_haus, rate: 0.7
use_bpm 80
sleep 3
end
live_loop :guit do