-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlib.js
157 lines (122 loc) · 2.83 KB
/
lib.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
// Generated by CoffeeScript 1.6.2
var Unionize, W, WI, arrowofhrt, log;
this.Unionize = {};
this.s = 'L()';
this.user = 'wiber';
Unionize = {};
WI = Meteor.users;
Unionize.WI = WI;
W = new Mongo.Collection('w');
log = console.log.bind(console);
Unionize.connect = function(docs) {
if (!docs) {
throw new (new Meteor.Error('Please check information provided undefined', '404'));
}
if (!docs.from_user) {
throw new (new Meteor.Error('Source is not defined from_user', '404'));
}
if (!docs.to_user) {
throw new (new Meteor.Error('Target is not defined to_user', '404'));
}
if (WI.find(docs.from_user).count()) {
WI.update(docs.from_user, {
$push: {
'outbox': docs
}
});
}
};
this.WIFound = function(id) {
var found;
smite(id, 'scouting nemo', eval(s));
found = WI.find({
_id: id
}, {
limit: 1
}).count();
smite(id, found, 'finding nemo', eval(s));
return found;
};
this.WFound = function(id) {
var found;
smite(id, 'scouting nemo', eval(s));
found = W.find({
_id: id
}, {
limit: 1
}).count();
smite(id, found, 'finding nemo', eval(s));
return foun;
};
this.smite = (function() {
var context;
context = 's';
return Function.prototype.bind.call(console.log, console, context);
})();
console.warn = function() {};
arrowofhrt = false;
this.daff = function() {
var d;
if (Meteor.isServer && arrowofhrt) {
this.time = process.hrtime();
d = process.hrtime(time);
d = d[1] + d[0] * 1e9;
return d;
} else {
return new Date().getTime();
}
};
this.dif = [];
this.consoling = true;
this.t = function() {
var d;
dif.push(daff());
if (!(Meteor.isServer && consoling)) {
console.timeEnd('elapsed');
console.time('elapsed');
}
console.log(d = dif.slice(-1)[0] - dif[0]);
return d;
};
Meteor.methods({
"t": function() {
return L();
}
});
this.L = function() {
var caller_line, clean, end, err, getErrorObject, index, pathChars, r, start;
t();
if (Meteor.isClient) {
return '';
} else {
getErrorObject = function() {
var err;
try {
throw Error('');
} catch (_error) {
err = _error;
return err;
}
};
err = getErrorObject();
caller_line = err.stack.split('\n')[4];
index = caller_line.indexOf('at ');
clean = caller_line.slice(index + 2, caller_line.length);
pathChars = 38;
start = clean.length - pathChars;
end = start + 32;
r = clean.slice(start, +end + 1 || 9e9) + ' ' + t();
return r;
}
};
this.smiter = (function() {
var context;
context = eval(s);
return Function.prototype.bind.call(console.log, console, context);
})();
this.W = new Meteor.Collection('W');
this.WI = new Meteor.Collection('WI');
this.Unionize.W = W;
this.Unionize.WI = WI;
eval('smiter("lives")');
smite('smiter live!', eval(s));