View resume.json
This file contains 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
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"basics": { | |
"name": "Rajat Barman", | |
"label": "Frontend guy | Ex Pharmeasy, Toppr, Oyo Rooms", | |
"image": "", | |
"email": "rajatbarman@yahoo.com", | |
"phone": "", | |
"url": "", | |
"summary": "Coding philosophies - Write simple and explicit code -- Develop for users not for deadlines -- Express yourself through your work -- Be attentive to details.", |
View test.js
This file contains 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 puppeteer = require('puppeteer'); | |
const Xvfb = require('xvfb'); | |
const xvfb = new Xvfb({ reuse: true }); | |
const width = 3840; | |
const height = 2160; | |
const options = { | |
headless: false, | |
args: [ | |
'--enable-usermedia-screen-capturing', | |
'--allow-http-screen-capture', |
View test-schedule.js
This file contains 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 spawn = require('child_process').spawn; | |
for (let i=0; i <=10; i++) { | |
spawn('node', ['--max-old-space-size=2048', './test.js', `test${i}`, 5], { | |
stdio: 'inherit' | |
}); | |
} |
View imagemin-lambda-handler.js
This file contains 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
/* | |
Copies Original File to originals/ folder in the same bucket | |
Optimizes jpeg/png, writes the optimized jpeg/png in the same path | |
If optimized jpeg/png size is somehow greater than the original, optimization is skipped. | |
Webp version of the optimized jpeg/png is created and written in webps folder in the same bucket | |
If webp version size is greater than optimized jpeg/png, webp write is skipped. | |
For preparing imagemin binaries for the lambda runtime environment | |
See https://hub.docker.com/r/rajatbarman/imagemin-lambda |
View sample-react-package.json
This file contains 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
{ | |
"name": "mm-react", | |
"version": "1.0.0", | |
"description": "Micro Market App on React", | |
"main": "index.js", | |
"scripts": { | |
"dev": "webpack-dev-server --content-base app --inline --hot", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "", |
View webpack.config.js
This file contains 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
//Explanation for the config file can be found here https://webpack.github.io/docs/configuration.html | |
var debug = process.env.NODE_ENV !== "production"; | |
var webpack = require('webpack'); | |
module.exports = { | |
context: __dirname, | |
devtool: debug ? "inline-sourcemap" : null, | |
entry: "./js/scripts.js", | |
output: { | |
path: __dirname + "/js", |
View dabblet.css
This file contains 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
ul {position: relative;margin: 0;padding: 0;}li {display: inline-block;width: 100px;text-align: center;border-bottom: 5px solid #ccc;}li.blue:hover ~ div {left: 200px;background: blue;}li.green:hover ~ div {left: 100px;background: green;}li.red:hover ~ div{background: red;left: 0;}div {position: absolute;height: 5px;top: 17px;width: 100px;transition: all 1s ease;left: 0;} |