Sync your obsidian vault with AWS cloud storage
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
const mongoClient = require('mongodb'); | |
const url = 'mongodb://localhost:27017'; | |
var _db; | |
module.exports = { | |
connectToServer: function(cb) { | |
mongoClient.connect(url, { useNewUrlParser: true }, function(err, client) { | |
_db = client.db('taskit'); | |
return cb(err); |
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
# Kill a port running in the background | |
lsof -t -i:3000 | xargs kill |
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
const NS_PER_SEC = 1e9; | |
function test(func, ...args) { | |
let times = []; | |
for (let i = 0; i < 5; i++) { | |
const t = process.hrtime(); | |
func(...args); | |
const diff = process.hrtime(t); | |
times.push((diff[0] * NS_PER_SEC) + diff[1]); |
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
[ | |
{ | |
"groups": [ | |
{ | |
"name": "Design & Code", | |
"bookmarks": [ | |
{ | |
"name": "Figma", | |
"url": "https://www.figma.com/" | |
}, |
I hereby claim:
- I am binyamin on github.
- I am binyamin (https://keybase.io/binyamin) on keybase.
- I have a public key whose fingerprint is 64F0 693F 3022 0749 E571 1A5A C27D 091C 9A45 3A1E
To claim this, I am signing this object:
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
const path = require("path"); | |
const fs = require("fs"); | |
const deepmerge = require("deepmerge"); | |
const sass = require("sass"); | |
const cleanCss = require("clean-css"); | |
function minify(css) { | |
const cleaner = new cleanCss(); | |
const minified = cleaner.minify(css); |
OlderNewer