This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"git.enableSmartCommit": true, | |
"git.confirmSync": false, | |
"git.autofetch": true, | |
"editor.tabSize": 2, | |
"[python]": { | |
"editor.tabSize": 4 | |
}, | |
"files.eol": "\n", | |
"editor.rulers": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cmath> | |
#include <cstdlib> | |
#include <string> | |
#define let const auto | |
#define CUBE_COUNT 28 | |
using std::cin; | |
using std::cout; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// eating old updates | |
(async () => { | |
if (bot.hasOpenWebHook()) { | |
await bot.deleteWebHook() | |
} | |
let lastUpdateID = 0 | |
lastUpdateID = await bot.getUpdates({}) | |
.then(updates => updates[updates.length - 1].update_id) | |
const recursiveReq = async () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* Binds function to positioned arguments | |
* posargs must be like { 2: one_arg, 100: another_arg, 0: another_arg } | |
* @param {Function} fn | |
* @param {Object} posargs | |
*/ | |
const positionalBind = (fn, posargs) => (...args) => { | |
const indexes = Object.keys(posargs).map(_ => +_).sort(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _brc_parse_git_branch_ { | |
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
if [ ! "${BRANCH}" == "" ] | |
then | |
echo "(${BRANCH})" | |
fi | |
} | |
function _brc_parse_branch_status_ { | |
if [[ $(git status --short) ]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const AsyncEmitter = () => ({ | |
_events: {}, | |
on(name, f) { | |
!Object.keys(this._events).includes(name) && | |
(this._events[name] = []); | |
if (this._events[name].find(fn => fn.source === f || fn === f)) return; | |
this._events[name].push(f); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#define PTR_SZ sizeof(void*) | |
#define INT_SZ sizeof(int) | |
struct monomtx; | |
int mmtx_get(struct monomtx*, int, int); | |
void mmtx_set(struct monomtx*, int, int, int); |


This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:slim | |
WORKDIR /opt/app | |
COPY ./ ./ | |
EXPOSE 8080 | |
CMD node ./ |
OlderNewer