This file contains hidden or 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
| mkdir converted | |
| find . -regex .*mp3 | ruby -pe 'gsub(".mp3", "")' | xargs -I __ ffmpeg -i __.mp3 -ss 0 -t 30 -ac 1 -ab 256000 -f mp4 -acodec libfaac -y __.m4r | |
| #important: limit to 30 seconds otherwise iTunes won't transfer it to iphone. | |
This file contains hidden or 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
| -bash-4.1$ uname -a | |
| Linux sm11 2.6.32-431.1.2.el6.x86_64 #1 SMP Thu Dec 12 13:59:19 CST 2013 x86_64 x86_64 x86_64 GNU/Linux | |
| -bash-4.1$ ruby -v | |
| ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] | |
| -bash-4.1$ which ruby | |
| ~/.rbenv/shims/ruby | |
| -bash-4.1$ gem environment | |
| RubyGems Environment: | |
| - RUBYGEMS VERSION: 1.8.23 | |
| - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-linux] |
This file contains hidden or 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
| Score Expect Identities Positives Gaps Frame | |
| 34.97 (70) 0.163 13/27 (48.15%) 19/27 (70.37%) 0/27 (0.00%) (3/-2) | |
| Query 111 LVLGLIGNIFLMYYFVKCLLKYFI*KI 191 | |
| LVL L+ N+ + YY + CLL YF+ +I | |
| Subject 120133 LVLKLVDNLAIYYYIILCLLLYFLIRI 120213 |
This file contains hidden or 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
| Failed to load resource: the server responded with a status of 401 (Unauthorized) http://afra.sbcs.qmul.ac.uk/lib/jquery/jquery.js?bust=1409565929178 | |
| Uncaught Error: Script error for: jquery | |
| http://requirejs.org/docs/errors.html#scripterror require.js:138 | |
| Failed to load resource: net::ERR_FAILED chrome-extension://invalid/ | |
| less: XHR: Getting 'http://afra.sbcs.qmul.ac.uk/styles.less?bust=1409565929178' lessc.js?bust=1409565929178:6297 | |
| less: XHR: Getting 'http://afra.sbcs.qmul.ac.uk/lib/bootstrap/less/variables.less' lessc.js?bust=1409565929178:6297 | |
| less: XHR: Getting 'http://afra.sbcs.qmul.ac.uk/lib/bootstrap/less/mixins.less' lessc.js?bust=1409565929178:6297 | |
| less: XHR: Getting 'http://afra.sbcs.qmul.ac.uk/lib/bootstrap/less/normalize.less' lessc.js?bust=1409565929178:6297 | |
| less: XHR: Getting 'http://afra.sbcs.qmul.ac.uk/lib/bootstrap/less/scaffolding.less' lessc.js?bust=1409565929178:6297 |
This file contains hidden or 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
| install.packages('RUnit') # only once for the machien | |
| library(RUnit) # every time R starts | |
| d = function() { asdf( } | |
| # Output: Error: unexpected '}' in "d = function() { asdf( }" | |
| checkEquals(d(), 32) |
This file contains hidden or 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
| # installing ruby | |
| wget -O ruby-install-0.4.3.tar.gz https://github.com/postmodern/ruby-install/archive/v0.4.3.tar.gz | |
| tar -xzvf ruby-install-0.4.3.tar.gz | |
| cd ruby-install-0.4.3/ | |
| sudo make install | |
| ruby-install ruby | |
| .rubies/2.1.3/bin/ruby |
This file contains hidden or 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
| bash <(curl -s https://gist.githubusercontent.com/yeban/df12d4ed1e624c64d023/raw/985ef241f69218aef41883e8cf30388830378f3c/ruby-setup.sh) |
This file contains hidden or 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
| # modified from : http://daisukeichikawa.blogspot.co.uk/2014/03/try-circlize-package.html | |
| ######### | |
| library(circlize) | |
| par(mar = c(1, 1, 1, 1)) | |
| factors = as.factor(c("scaffold1", "scaffold2")) | |
| circos.par(points.overflow.warning = FALSE) | |
| # initialize |
This file contains hidden or 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
| #when discoveryd process is hogging CPU & domains aren't being resolved | |
| sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist | |
| sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist |
This file contains hidden or 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
| library(ggplot2) | |
| plotPCs <- function(data=pcaOnIndividualQueenSamples, pcs=c(1,2), outputToScreen=TRUE) { | |
| print(paste("running on:", deparse(substitute(pcaOnIndividualQueenSamples)))) | |
| library(ggplot2) | |
| if (length(pcs) != 2) { | |
| warning('must know which PCs to plot - give me 2!') | |
| } | |
| # if (outputToScreen) { | |
| # yw$createDisplayDeviceIfNoneExists() |
OlderNewer