Skip to content

Instantly share code, notes, and snippets.

@carlo-colombo
carlo-colombo / data.tsv
Last active August 29, 2015 14:01
Grafico demo maker faire
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
date,close
3-Dec-07,178.86
4-Dec-07,179.81
5-Dec-07,185.50
6-Dec-07,189.95
7-Dec-07,194.30
10-Dec-07,194.21
11-Dec-07,188.54
12-Dec-07,190.86
13-Dec-07,191.83
@carlo-colombo
carlo-colombo / .ctags
Created June 13, 2012 19:03 — forked from mfwarren/.ctags
my .ctags syntax file for Groovy language (exuberant-ctags)
--langdef=groovy
--langmap=groovy:.groovy
--regex-groovy=/^[ \t]*[(private|public|protected) ( \t)]*def[ \t]+([A-Za-z0-9_]+)[ \t]*\(/\1/f,function,functions/
--regex-groovy=/^[ \t]*private def[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/v,private,private variables/
--regex-groovy=/^[ \t]*public def[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/u,public,public variables/
--regex-groovy=/^[ \t]*[abstract ( \t)]*[(private|public) ( \t)]*class[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/c,class,classes/
--regex-groovy=/^[ \t]*[abstract ( \t)]*[(private|public) ( \t)]*enum[ \t]+([A-Za-z0-9_]+)[ \t]*/\1/c,class,classes/
@carlo-colombo
carlo-colombo / gist:2842618
Created May 31, 2012 10:51
Gantt cleaner
var table = document.querySelector('#tasks'),
table2 = table.cloneNode(true),
forEach = Array.prototype.forEach;
forEach.call(document.body.querySelectorAll('body > div'),function(v,i){document.body.removeChild(v)});
document.body.appendChild(table2);
forEach.call(document.querySelectorAll('th,td.q4 '),function(v,i){ v.style['background-color']='transparent' });
forEach.call(document.querySelectorAll('.p3'),function(p3,i){p3.parentNode.removeChild(p3)});
@carlo-colombo
carlo-colombo / change-java.sh
Created February 12, 2012 15:20
function to switch java version
function changeJava
{
declare -A versions
versions[java6oracle]=aaaaa
versions[java6oracle-short]=6c
versions[java7open]=java-7-openjdk
versions[java7open-short]=7o
#symbolic link to correct version
for i in {'',c,p,doc,h}; do