show dbs
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
02/28 | 02/29 | 03/01 | 03/02 | 03/03 | 03/04 | 03/05 | 03/06 | 03/07 | 03/08 | 03/09 | 03/10 | 03/11 | 03/12 | 03/13 | 03/14 | 03/15 | 03/16 | 03/17 | 03/18 | 03/19 | 3/20 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | 4 | 4 | 4 | 5 | 5 | 5 | 6 | 6 | 6 | 6 | 16 | 19 | 20 | 21 | 28 | 53 | 187 | 249 | 307 | 461 | 495 |
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
// CALLBACK | |
// function loginUser(email, password, callback){ | |
// setTimeout(() => { | |
// callback({email}) | |
// }, 2000); | |
// } | |
// function getUserPosts(email, callback){ |
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
var list = document.querySelectorAll('#overlays ytd-thumbnail-overlay-time-status-renderer') | |
toSec = () => { | |
var time = 0 | |
list.forEach(video => { | |
var t = video.innerText.split(':') | |
var sec = parseInt(t[0]) *60 + parseInt(t[1]) | |
time += sec | |
}) | |
toHMS(time) |
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
app.use("/graphql", (req, res, next) => { | |
const startHrTime = process.hrtime(); | |
res.on("finish", () => { | |
if (req.body && req.body.operationName) { | |
const elapsedHrTime = process.hrtime(startHrTime); | |
const elapsedTimeInMs = | |
elapsedHrTime[0] * 1000 + elapsedHrTime[1] / 1e6; | |
logger.info({ | |
type: "timing", |
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
// for iterating over values without generator | |
var obj = { | |
a: 1, | |
b: 2, | |
c: 3, | |
[Symbol.iterator]: function(){ | |
var keys = Object.keys(this); | |
var index = 0 | |
return { | |
next: () => |
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
import Redis from "ioredis"; | |
import connectRedis from "connect-redis"; | |
import session from "express-session"; | |
const RedisStore = connectRedis(session); | |
const redis = new Redis(process.env.REDIS_URL); | |
app.use( | |
session({ | |
name: COOKIE_NAME, |
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
{ | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.detectIndentation": true, | |
// "editor.fontFamily": "Fira Code,Consolas, 'Courier New', monospace", | |
"editor.fontFamily": "Fira Code", | |
"editor.fontWeight": "400", | |
// "editor.fontSize": 16, | |
// "editor.fontFamily": "Cascadia Code, Consolas, 'Courier New', monospace", | |
// "editor.fontWeight": "350", | |
"editor.fontLigatures": true, |
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
async function sleep(time){ | |
return new Promise(resolve => setTimeout(() => resolve(time), time)) | |
} |
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
// SPDX-License-Identifier: MIT OR Apache-2.0 | |
pragma solidity 0.8.2; | |
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; | |
import "@openzeppelin/contracts-upgradeable/utils/CountersUpgradeable.sol"; | |
import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; | |
import "@openzeppelin/contracts-0.8/token/ERC721/ERC721.sol"; | |
import "hardhat/console.sol"; |
OlderNewer