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:
| 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); |
I hereby claim:
To claim this, I am signing this object:
| [ | |
| { | |
| "groups": [ | |
| { | |
| "name": "Design & Code", | |
| "bookmarks": [ | |
| { | |
| "name": "Figma", | |
| "url": "https://www.figma.com/" | |
| }, |
| 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]); |
| # Kill a port running in the background | |
| lsof -t -i:3000 | xargs kill |
Sync your obsidian vault with AWS cloud storage
| 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); |
| const gulp = require('gulp'); | |
| const browserSync = require('browser-sync').create(); | |
| const sass = require('gulp-sass'); | |
| const rename = require('gulp-rename'); | |
| const sourcemaps = require('gulp-sourcemaps'); | |
| const postcss = require('gulp-postcss') | |
| const css = cb => { | |
| gulp.src('./css/style.scss') | |
| .pipe(sourcemaps.init()) |
| .wrapper, .wrapper--center { | |
| display: grid; | |
| padding-right: 36px; | |
| padding-left: 36px; | |
| grid-template-columns: repeat(12, 1fr); | |
| gap: 36px; | |
| @media only screen and (max-width: 960px) and (min-width: 480px) { | |
| margin-left: 24px; | |
| margin-right: 24px; |