Skip to content

Instantly share code, notes, and snippets.

View Yooooomi's full-sized avatar

Timothee Boussus Yooooomi

  • France
View GitHub Profile
# Kill any app using a given port
kill -9 $(lsof -ti:PORT)
return await Competition.aggregate([
{
$match: {
$expr: {
$eq: ['$_id', { $toObjectId: compId }],
}
}
},
{ $unwind: '$steps' },
{
@Yooooomi
Yooooomi / infiniteObj.js
Last active December 18, 2018 15:39
Infinite callable Javascript Object
const nullFn = () => { };
const proxy = {
get: function () {
return new Proxy(nullFn, proxy);
},
};
const infinite = new Proxy(nullFn, proxy);