Skip to content

Instantly share code, notes, and snippets.

@florin-chelaru
florin-chelaru / copy-of-overview-of-colaboratory-features.ipynb
Last active November 24, 2023 21:04
copy-of-overview-of-colaboratory-features.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@florin-chelaru
florin-chelaru / shared-worker.js
Created January 4, 2016 20:48
example Shared Worker
console.log('New worker started');
#!/bin/bash
function ceil {
echo "$1" | awk 'function ceil(v) { return (v == int(v)) ? v : int(v)+1 } { printf "%d", ceil($1) } '
}
input=$1
filename=$(basename $input)
linecount=$(wc -l $input | cut -f1 -d' ')
#!/bin/bash
# input is a file containing a list of paths (generated with extract_all_paths.sh)
input=$1
# get the id of the task, generated by GridEngine
taskId=$SGE_TASK_ID
# the number of files to be processed in one run
batchSize=$2
#!/bin/bash
function showHelp {
printf "\nUsage: $1 [OPTION]... [IGNORES]...\n"
printf "Valid options:\n"
printf " -h\tThis help message\n"
printf " -d\tTarget directory\n"
printf " -o\tOutput file\n"
printf " -i=[list of dirs to ignore] (must be the last option in the command)\n"
printf "\n"
@transition-speed: 0.5s;
@light-gray: #ddd;
@medium-gray: #808080;
@dark-gray: #494949;
@transparent-light-gray: rgba(0, 0, 0, 0.025);
@transparent-gray: rgba(0, 0, 0, 0.05);
@transparent-dark-gray: rgba(0, 0, 0, 0.075);
@item-max-height: 120px;
@florin-chelaru
florin-chelaru / mihai-python-settings.js
Last active October 10, 2015 01:28
Mihai Python Demo
/**
* Created by Florin Chelaru ( florinc [at] umd [dot] edu )
* Date: 10/9/13
* Time: 11:13 AM
*/
/**
* Overrides the default configuration settings for EpiViz
*/
epiviz.Config.SETTINGS = {
/**
* Created by Florin Chelaru ( florinc [at] umd [dot] edu )
* Date: 10/9/13
* Time: 11:13 AM
*/
/**
* Overrides the default configuration settings for EpiViz
*/
epiviz.Config.SETTINGS = {
@florin-chelaru
florin-chelaru / settings-heatmap-dendrogram.js
Last active August 29, 2015 14:16
Epiviz Settings Heatmap Dendrogram (Epiviz 3)
var heatmapCustomSettings = epiviz.Config.SETTINGS.chartCustomSettings['epiviz.plugins.charts.HeatmapPlot'];
if (!heatmapCustomSettings) {
epiviz.Config.SETTINGS.chartCustomSettings['epiviz.plugins.charts.HeatmapPlot'] = {};
}
heatmapCustomSettings['showDendrogramLabels'] = false;
heatmapCustomSettings['dendrogramRatio'] = 0.1;
heatmapCustomSettings['clusteringAlg'] = 'agglomerative';
@florin-chelaru
florin-chelaru / my-settings-overrides.js
Last active August 29, 2015 14:15
My Track with Negative Values (Epiviz 3)
epiviz.Config.SETTINGS.chartTypes.push('epiviz.plugins.charts.MyTrackType');