initial commit taken from gitlab.lrz.de

This commit is contained in:
privatereese
2018-08-24 18:09:42 +02:00
parent ae54ed4c48
commit fc05486403
28494 changed files with 2159823 additions and 0 deletions

18
node_modules/temp/examples/grepcount.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
var temp = require('../lib/temp'),
fs = require('fs'),
util = require('util'),
exec = require('child_process').exec;
var myData = "foo\nbar\nfoo\nbaz";
temp.open('myprefix', function(err, info) {
if (err) throw err;
fs.write(info.fd, myData);
fs.close(info.fd, function(err) {
if (err) throw err;
exec("grep foo '" + info.path + "' | wc -l", function(err, stdout) {
if (err) throw err;
util.puts(stdout.trim());
});
});
});

22
node_modules/temp/examples/pdfcreator.js generated vendored Normal file
View File

@@ -0,0 +1,22 @@
var temp = require('../lib/temp'),
fs = require('fs'),
util = require('util'),
path = require('path'),
exec = require('child_process').exec;
var myData = "\\starttext\nHello World\n\\stoptext";
temp.mkdir('pdfcreator', function(err, dirPath) {
var inputPath = path.join(dirPath, 'input.tex')
fs.writeFile(inputPath, myData, function(err) {
if (err) throw err;
process.chdir(dirPath);
exec("texexec '" + inputPath + "'", function(err) {
if (err) throw err;
fs.readFile(path.join(dirPath, 'input.pdf'), function(err, data) {
if (err) throw err;
util.print(data);
});
});
});
});