This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# File: mk_test.rb | |
# Date: 2010-10-06 | |
# Author: Allan Espinosa | |
# Email: [email protected] | |
# Description: A Swift workflow generator to test OSG sites through the Engage | |
# VO. Generates the accompanying tc.data and sites.xml as well. | |
# Run with "swift -sites.file sites.xml -tc.file tc.data | |
# test_osg.swift" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x<-read.table('filename.event') | |
x$from<-x$V1-min(x$V1) | |
x$to<-x$from+x$V2 | |
y<-as.numeric(rownames(x)) | |
x<-x[order(x$from),] | |
plot(x$to,y, 'n') | |
segments(x$from,y,x$to,y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/.vim$ for i in bundle/*/.git/info/exclude; do echo tags >> $i; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd /var/wwwroot | |
git archive --remote /repository/html.git \ | |
--format tar refs/heads/master | tar -xv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instead of the long ctags generation on the entire /usr/include . Filter out the libc headers first. Just add as you need based on the *-dev package list. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tip from an email in: http://tolstoy.newcastle.edu.au/R/help/06/07/30469.html | |
formatEng <- function(x) { | |
s<-as.numeric(strsplit(format(x, scientific=T),"e")[[1]]) | |
return(paste(s[1]*10^(s[2]%%3),as.integer(s[2]-(s[2]%%3)),sep="e")) | |
} | |
# Use with sapply on dataframe elements | |
sapply(x$col, formatEng) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" | |
xmlns:moz="http://www.mozilla.org/2006/browser/search/"> | |
<!-- Created on Mon, 07 May 2012 19:29:45 GMT --> | |
<ShortName>Mendeley</ShortName> | |
<Description>Mendeley</Description> | |
<Url type="text/html" method="get" template="http://www.mendeley.com/research-papers/search/?query={searchTerms}"/> | |
<Image width="16" height="16">http://www.mendeley.com/favicon.ico</Image> | |
<Developer>Allan Espinosa</Developer> | |
<InputEncoding>UTF-8</InputEncoding> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.share_folder "v-root", "/vagrant", ".", extra: "umask=022" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shell -$SHELL | |
#shelltitle 'sometitle' | |
defscrollback 100000 | |
# Remove some stupid / dangerous key bindings | |
bind . | |
bind ^\ | |
bind \\ | |
bind ^h | |
bind h |
OlderNewer