Skip to content

Instantly share code, notes, and snippets.

@idot
idot / config.scala
Created November 26, 2013 15:24 — forked from retronym/config.scala
package scalaz.example
object Reader extends App {
/**
* Manual propagation of the environment (in the example, `contextRoot`.)
*/
object Config0 {
def fragment1(contextRoot: String) = <a href={contextRoot + "/foo"}>foo</a>
@idot
idot / eulerGrid.R
Created November 21, 2014 14:36
euler grid
## Prepare data to plot in Euler Grid.
## Quantity or binary table with columns for samples and rows for features
#### FUNCTIONS #######
## convert a (table, matrix,) data.frame to either 0/1 or FALSE/TRUE based on whether values exceed threshold.
## to invert a threshold use: new.table <- table == FALSE
### Keybase proof
I hereby claim:
* I am idot on github.
* I am idotamir (https://keybase.io/idotamir) on keybase.
* I have a public key whose fingerprint is CAB5 4E68 808E 591E 4F62 E3BE 0271 0975 3DDF F04E
To claim this, I am signing this object:
@idot
idot / chr2num.R
Created February 18, 2016 09:00
converts chromosome names from Tair10 from ngsplot to numeric names
#!/usr/bin/env Rscript
#copy .metainfo and .chrnames.endsembl from orig tar.gz in subfolder and change
# chrnames, ID
#tar with tar -zcvf Tair10numeric.tar.gz Tair10numeric
convertRdata <- function(){
id <- "Tair10numeric"
dir.create(id, recursive=TRUE, show=FALSE )
@idot
idot / per_item.nf
Created January 23, 2019 15:44
NextFlow results per item in set
#!/usr/bin/env nextflow
//the problem is 1, then the channel gets file(*) => UnixPath; > 1, then channel gets ArrayList<UnixPath>
starts=Channel.from(1,2,3,4)
process first {
input:
val start from starts
output:
@idot
idot / setup.sh
Last active January 18, 2024 09:26 — forked from bradp/setup.sh
New Mac Setup Script
#!/bin/bash
#echo "Creating an SSH key for you..."
#ssh-keygen -t rsa
#echo "Please add this public key to Github \n"
#echo "https://github.com/account/ssh \n"
#read -p "Press [Enter] key after this..."
XCODE=$(xcode-select -p 1>/dev/null;echo $?)
if [ $XCODE -ne 0 ]; then