Skip to content

Instantly share code, notes, and snippets.

View icaoberg's full-sized avatar
:bowtie:
Coding…

icaoberg icaoberg

:bowtie:
Coding…
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 ([email protected])
#
# 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 ([email protected])
#
# 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
Last active January 15, 2025 09:53
Simple stack in Ruby
# Author: Ivan E. Cao-Berg ([email protected])
#
# Copyright (C) 2012-2025
# 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
Last active January 15, 2025 09:55
Simple queue in Ruby
# Author: Ivan E. Cao-Berg ([email protected])
#
# Copyright (C) 2012-2025
# 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
Last active January 15, 2025 09:57
Simple linked list in Python
# Author: Ivan E. Cao-Berg ([email protected])
#
# Copyright (C) 2012-2025
# 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 ([email protected])
#
# 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
Last active January 15, 2025 10:00
Simple queue in Python
# Author: Michelle Mackie
# Update: Ivan E. Cao-Berg
#
# Copyright (C) 2012-2025
# 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 / stack.py
Last active January 15, 2025 10:04
Simple stack in Python
# Author: Michelle Mackie
# Update: Ivan E. Cao-Berg
#
# Copyright (C) 2012-2025
# 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 / 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 ([email protected])
%
% 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 ([email protected])
#
# 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