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
import os | |
from hurry.filesize import size, si | |
filename = "test.txt" | |
limit = 1000000 | |
var = "filenames.wiff" | |
with open(filename, 'w') as out: | |
for f in range(0,limit): | |
out.write(var + '\n') | |
s = os.path.getsize("/tmp/{x}".format(x=filename)) |
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
/** | |
* Will add events per row from a spreadsheet in a calendar. | |
* | |
* Events are expected to start being described from row 'startRow' on, | |
* having the time in the first column in HH:MM format (full 24h!), the name of the event in | |
* second column (empty entries will make the row being ignored), and third and fourth column | |
* values added each as a line in the event description. | |
*/ | |
function createCalendarEvent() { | |
var sheet = SpreadsheetApp.getActiveSheet(); |
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
#1 | |
"content": { | |
"_cvRef": "PSI-QC-CV", | |
"_accession": "QC:301_filespanning", | |
"_value": "{'filenames':[rawfile001,rawfile002,rawfile003,rawfile004,rawfile005],'MS:1000043':[123,456,789,666,901]}" | |
}, | |
#2 | |
"content": { | |
"_cvRef": "PSI-QC-CV", |
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
#hypervisor requirements ... | |
# --vm-driver=none if docker is installed might be enough | |
#kubectl | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl ~/cloud-stuff/utils/ | |
#minikube | |
curl -Lo minikube https://github.com/kubernetes/minikube/releases/download/$(curl -s "https://api.github.com/repos/kubernetes/minikube/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')/minikube-linux-amd64 && chmod +x minikube-linux-amd64 && sudo mv minikube-linux-amd64 ~/cloud-stuff/utils/minikube | |
#launch |
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
FROM microsoft/dotnet-framework:3.5 | |
#FROM microsoft/windowsservercore:10.0.14393.206 | |
#WTF? seems .net 35 is not activated | |
SHELL ["powershell"] | |
COPY pwiz c:/pwiz/ | |
COPY 06282014_JLB_UF_Run3.raw c:/temp/06282014_JLB_UF_Run3.raw | |
# Note: Add .NET + ASP.NET |
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
library(ggplot2) | |
# ggpie: draws a pie chart. | |
# give it: | |
# * `dat`: your dataframe | |
# * `by` {character}: the name of the fill column (factor) | |
# * `totals` {character}: the name of the column that tracks | |
# the time spent per level of `by` (percentages work too). | |
# returns: a plot object. | |
#credit http://mathematicalcoffee.blogspot.co.uk/2014/06/ggpie-pie-graphs-in-ggplot2.html |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: init-test-pod-only | |
spec: | |
containers: | |
- name: svn-pod | |
image: mwalzer/alpine-svn | |
imagePullPolicy: IfNotPresent | |
# container will "crash" if no command is present as there is no default entrypoint as e.g. would be in nginx |
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
library(ggplot2) | |
library(dplyr) | |
library(tidyr) | |
msstats<- peptides.lfq.tutorial | |
# Assume cf_charge as PrecursorCharge for all features in one row of TextExporter output | |
msstats <- msstats %>% rename(PrecursorCharge=charge_cf) | |
# Drop useless cols |
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="ISO-8859-1"?> | |
<PARAMETERS version="1.3" xsi:noNamespaceSchemaLocation="http://open-ms.sourceforge.net/schemas/Param_1_3.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<NODE name="info" description=""> | |
<ITEM name="version" value="1.9.0" type="string" description="" /> | |
<ITEM name="num_vertices" value="10" type="int" description="" /> | |
<ITEM name="num_edges" value="10" type="int" description="" /> | |
<ITEM name="description" value="<![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | |
<html><head><meta name="qrichtext" content="1" /><style type="text/css"> | |
p, li { white-space: pre-wrap; } | |
</style></head><body style=" font-family:'Arial'; font-size:12pt; font-weight:400; font-style:normal;"> |
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="ISO-8859-1"?> | |
<PARAMETERS version="1.3" xsi:noNamespaceSchemaLocation="http://open-ms.sourceforge.net/schemas/Param_1_3.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<NODE name="info" description=""> | |
<ITEM name="version" value="1.9.0" type="string" description="" /> | |
<ITEM name="num_vertices" value="9" type="int" description="" /> | |
<ITEM name="num_edges" value="8" type="int" description="" /> | |
<ITEM name="description" value="<![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | |
<html><head><meta name="qrichtext" content="1" /><style type="text/css"> | |
p, li { white-space: pre-wrap; } | |
</style></head><body style=" font-family:'Arial'; font-size:12pt; font-weight:400; font-style:normal;"> |