Skip to content

Instantly share code, notes, and snippets.

View icaoberg's full-sized avatar

icaoberg icaoberg

View GitHub Profile
@icaoberg
icaoberg / gist:2581526
Created May 2, 2012 23:17
Retrieves a list of image ids (iids) owned by the user making the connection to an omero.server using the current API
# Author: Ivan E. Cao-Berg (icaoberg@cmu.edu)
#
# Copyright (C) 2012
# School of Computer Science
# Carnegie Mellon University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version.
@icaoberg
icaoberg / gist:2581913
Created May 2, 2012 23:33
Retrieves a list of projects ids (prids) owned by the user making the connection to an omero.server using the current API
# Author: Ivan E. Cao-Berg (icaoberg@cmu.edu)
#
# Copyright (C) 2012
# School of Computer Science
# Carnegie Mellon University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version.
@icaoberg
icaoberg / stack.rb
Created June 4, 2012 22:49
Simple stack in Ruby
# Author: Ivan E. Cao-Berg (icaoberg@cmu.edu)
#
# Copyright (C) 2012
# School of Computer Science
# Carnegie Mellon University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version.
@icaoberg
icaoberg / queue.rb
Created June 4, 2012 22:56
Simple queue in Ruby
# Author: Ivan E. Cao-Berg (icaoberg@cmu.edu)
#
# Copyright (C) 2012
# School of Computer Science
# Carnegie Mellon University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version.
@icaoberg
icaoberg / linkedlist.rb
Created June 11, 2012 20:02
Simple linked list in Python
# Author: Ivan E. Cao-Berg (icaoberg@cmu.edu)
#
# Copyright (C) 2012
# School of Computer Science
# Carnegie Mellon University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version.
@icaoberg
icaoberg / img2features.py
Created June 21, 2012 21:22
Shows how to calculate the SLF34 features subset using using pyslic
# Author: Ivan E. Cao-Berg (icaoberg@scs.cmu.edu)
#
# Copyright (C) 2012 Murphy Lab
# Lane Center for Computational Biology
# School of Computer Science
# Carnegie Mellon University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2 of the License,
@icaoberg
icaoberg / queue.py
Created June 21, 2012 22:43
Simple queue in Python
# Author: Michelle Mackie
#
# Copyright (C) Summer 2012
# School of Computer Science
# Carnegie Mellon University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version.
@icaoberg
icaoberg / stack.py
Created June 21, 2012 22:47
Simple stack in Python
# Author: Michelle Mackie
#
# Copyright (C) Summer 2012
# School of Computer Science
# Carnegie Mellon University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2 of the License,
# or (at your option) any later version.
@icaoberg
icaoberg / gist:3079133
Created July 9, 2012 21:33
Train a generative model of subcellular location using the LAMP2 dataset from the Murphy Lab on CellOrganizer
function answer = lamp2( directory )
%LAMP2 Helper script that shows how to train a generative model of
%subcelullar location using the LAMP2 dataset from the Murphy Lab.
% Author: Ivan E. Cao-Berg (icaoberg@scs.cmu.edu)
%
% Copyright (C) 2012 Murphy Lab
% Lane Center for Computational Biology
% School of Computer Science
% Carnegie Mellon University
@icaoberg
icaoberg / gitremovetag.sh
Created August 10, 2012 17:37
Remove a tag from a Git repo and push the change to Github/BitBucket
#!/bin/bash
# Author: Ivan E. Cao-Berg (icaoberg@cmu.edu)
#
# Copyright (C) 2012
# School of Computer Science
# Carnegie Mellon University
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published