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 | |
# the provided script from goagent didn't work on mac | |
curl -O https://github.com/downloads/SiteSupport/gevent/gevent-1.0rc2.tar.gz | |
tar xvzpf gevent-1.0rc2.tar.gz | |
cd gevent-1.0rc2 | |
sudo python setup.py install |
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
# right way to collect data frame output of mclapply | |
do.call(rbind, mclapply(...)) | |
# since do.call treat the second arg as a list, it will correctly passed it to rbind | |
# this way doesn't work | |
a <- mclappy(...) | |
rbind(a) |
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
pb <- txtProgressBar(min = 0, max = kRep, style=3) | |
for (i in 1:kRep) { | |
setTxtProgressBar(pb, i) | |
} |
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
<Directory "/Users/USERNAME/Sites/"> | |
Options Indexes Multiviews | |
AllowOverride AuthConfig Limit | |
Order allow,deny | |
Allow from all | |
</Directory> |
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
(* | |
-- Send the selected files in Finder to Keka (for compression) | |
-- | |
-- @author Scott Buchanan <[email protected]> | |
-- @link http://wafflesnatcha.github.com | |
*) | |
tell application "Finder" | |
set _files to selection as alias list | |
if _files is {} then return display alert "No files selected!" as warning giving up after 5 |
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
res$dist <- unlist(lapply(c("Log-normal", "Gamma", "Uniform", "t"), rep, times=8)) | |
gl(n=4, k=8, labels=c("Log-normal", "Gamma", "Uniform", "t")) |