Skip to content

Instantly share code, notes, and snippets.

View Marlin-Na's full-sized avatar
💤
Waiting for Godot

Marlin Marlin-Na

💤
Waiting for Godot
  • Betelgeuse VII
View GitHub Profile
@Marlin-Na
Marlin-Na / setup_symengine_with_miniconda.sh
Last active December 12, 2022 00:24
Setup symengine R package with miniconda in docker
#!/usr/bin/env bash
set -ex
#### Run this inside Ubuntu docker image
cd ~/
apt-get update
@Marlin-Na
Marlin-Na / Project.toml
Last active June 15, 2021 04:09
BAM file with two reads
[deps]
GenomicFeatures = "899a7d2d-5c61-547b-bef9-6698a8d05446"
XAM = "d759349c-bcba-11e9-07c2-5b90f8f05f7c"
@Marlin-Na
Marlin-Na / recipe.jl
Created June 12, 2021 21:07
Makie.jl recipe example
### Makie: define recipes
using Makie
@recipe(CircleShape, x, y, r) do scene
Attributes(
color = :red
)
end
This file has been truncated, but you can view the full file.
[
{
"trackName": "track1",
"trackType": "stranded",
"visible": true,
"inner_radius": 130,
"outer_radius": 185,
"trackFeatures": "complex",
"featureThreshold": 7000000,
"mouseclick": "islandPopup",
@Marlin-Na
Marlin-Na / shit.md
Created February 17, 2018 13:56 — forked from jeroen/shit.md
Getting shit to work

Getting shit to work

Disclaimers

  • No authority
  • Official reference is writing r extentions (joke extentions)
  • If you thought writing regular r packages was tricky, hold on
@Marlin-Na
Marlin-Na / features.js
Last active November 28, 2017 23:40
tnt_example_composite_linetracks
var features_theme = function () {
var theme = function (board, div) {
// Axis track
var axis_track = tnt.board.track()
.height(0)
.color("white")
.display(tnt.board.track.feature.axis()
.orientation("top")
@Marlin-Na
Marlin-Na / mRunif.c
Created November 2, 2017 09:34 — forked from Sharpie/mRunif.c
An example of calling R functions from C
//myRunif.c
#include <R.h>
#include <Rinternals.h>
SEXP myRunif( SEXP n, SEXP min, SEXP max ){
SEXP statsPackage;
PROTECT(
statsPackage = eval( lang2( install("getNamespace"),
ScalarString(mkChar("stats")) ),
@Marlin-Na
Marlin-Na / 0_reuse_code.js
Created September 26, 2017 08:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Marlin-Na
Marlin-Na / test.md
Last active April 5, 2017 16:54
test org mode display

h1 Heading 8-)

h2 Heading

h3 Heading

h4 Heading

h5 Heading
h6 Heading

Horizontal Rules