Skip to content

Instantly share code, notes, and snippets.

View rintukutum's full-sized avatar
🎯
Focusing

Rintu Kutum, PhD rintukutum

🎯
Focusing
View GitHub Profile
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
// orange circle
fill('orange');
circle(50,100,40);
// text for rintu
@rintukutum
rintukutum / random-walk-tends-2-right.R
Last active March 15, 2023 23:46
random walk tends to right
library(R6)
library(animation)
Walker2 <- R6Class(
classname = 'Walker2',
public = list(
x = NULL,
y = NULL,
col = NULL,
cex = NULL,
initialize = function(
@rintukutum
rintukutum / svg2tiff
Created April 10, 2017 06:22 — forked from matsen/svg2tiff
A script to convert SVG to a TIFF acceptable to PLOS
#!/bin/sh
# Convert all arguments (assumed SVG) to a TIFF acceptable to PLOS
# Requires Inkscape and ImageMagick 6.8 (doesn't work with 6.6.9)
for i in $@; do
BN=$(basename $i .svg)
inkscape --without-gui --export-png="$BN.png" --export-dpi 300 $i
convert -compress LZW -alpha remove $BN.png $BN.tiff
mogrify -alpha off $BN.tiff
@rintukutum
rintukutum / update-fork.md
Last active August 19, 2017 10:53 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@rintukutum
rintukutum / HiveR_demo.R
Created February 20, 2017 01:57 — forked from geotheory/HiveR_demo.R
A HiveR package demo using the ggplot2 diamonds dataset
require(HiveR)
require(plyr)
require(colorspace)
require(classInt)
d = ggplot2::diamonds
d = d[,c(1:4,7)]
head(d); dim(d)
# separate carat-size data into equal interval groups