Skip to content

Instantly share code, notes, and snippets.

_.mixin({
'deepMapKeys': function (obj, fn) {
var x = {};
_.forOwn(obj, function(v, k) {
if(_.isPlainObject(v))
v = _.deepMapKeys(v, fn);
x[fn(v, k)] = v;
});
func Read_File_Stream_In_Ram(nameFile){
//read stream in memory
//...some stuff to work
yield data;
}
func Split_Chunk_Data(log){
nameFile = log.name
dataReceived = []
data = Read_File_Stream_In_Ram(nameFile)
dataReceived.push(data)
{
"directory": "/Scripts/Vendor"
}