Here's a few things I tried to write output to a python subprocess pipe.
from subprocess import Popen, PIPE
p = Popen('less', stdin=PIPE)
for x in xrange(100):
p.communicate('Line number %d.\n' % x)
source("go_annotations.R") | |
# Get the GO BP/MF/CC terms ids associated with STAT3 | |
gene2gos("STAT3") | |
# Get the GO BP/MF/CC terms description associated with STAT3 | |
go2terms(gene2gos("STAT3")) | |
# union of go terms for a list of genes | |
go2terms(gene2gos(c("STAT3","STAT2"))) |
#!/usr/bin/env node | |
var WebSocketServer = require('websocket').server; | |
var http = require('http'); | |
var server = http.createServer(function(request, response) { | |
console.log((new Date()) + ' Received request for ' + request.url); | |
response.writeHead(404); | |
response.end(); | |
}); | |
server.listen(8080, function() { |
#!/usr/bin/env node | |
var WebSocketClient = require('websocket').client; | |
var client = new WebSocketClient(); | |
client.on('connectFailed', function(error) { | |
console.log('Connect Error: ' + error.toString()); | |
}); | |
client.on('connect', function(connection) { |
import os | |
from subprocess import call | |
input_pdf = "plotCGHAnnexe.pdf" | |
for n_p in range(1, 23): | |
tgt_file = "plot_%d.pdf" % (n_p) | |
cropped_file = os.path.splitext(tgt_file)[0] + "-crop" + ".pdf" | |
downsampled = "lq_" + os.path.splitext(cropped_file)[0] + ".pdf" | |
midsampled = "hq_" + os.path.splitext(cropped_file)[0] + ".pdf" | |
call(args=["pdfjam", "plotCGHAnnexe.pdf", str(n_p), "--outfile", tgt_file]) |
Here's a few things I tried to write output to a python subprocess pipe.
from subprocess import Popen, PIPE
p = Popen('less', stdin=PIPE)
for x in xrange(100):
p.communicate('Line number %d.\n' % x)
Remove SentinelOne agent from Mac
/Applications/Utilities/Disk\ Utility.app/Contents/MacOS/Disk\ Utility
to open Disk Utilitychroot /Volumes/Macintosh\ HD