| Concept | Definition |
|---|---|
| Autonomy | How well will this company give me autonomy to do my job? |
| Freedom | How much freedom will I have to balance work and personal life? |
| Responsibilities | What level of responsibilities will I have, and how extensive will they be? |
| Culture | How well does this company's culture align with my values, and how open is the company to allowing me to contribute to the culture I believe in? |
| Tech Stack | How closely does the tech stack used by this company align with my preferences, and to what extent is the company willing to allow me to use the stack I prefer? |
| Personal Growth | How big is the potential of this company to help me keep growing? |
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 fs = require('fs'); | |
| const { PDFDocument, rgb } = require('pdf-lib'); | |
| const ExcelJS = require('exceljs'); | |
| // Function to convert XLSX to PDF | |
| async function convertXlsxToPdf(inputXlsxPath, outputPdfPath) { | |
| // Create a new PDF document | |
| const pdfDoc = await PDFDocument.create(); | |
| // Load the XLSX file | |
| const workbook = new ExcelJS.Workbook(); | |
| await workbook.xlsx.readFile(inputXlsxPath); |
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
| node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" |
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 python:3.10 | |
| WORKDIR /code | |
| #COPY ./requirements.txt /code/requirements.txt | |
| COPY ./ /code/ | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| #COPY ./app /code/app |
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 type { NextPage } from 'next'; | |
| import { getServerSidePropsPrivate } from '../../../middlewares/getServerSidePropsPrivate'; | |
| const MyPrivatePage: NextPage = ({ me }) => { | |
| // use me data | |
| /* code goes here */ | |
| }; | |
| export const getServerSideProps = getServerSidePropsPrivate; |
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
| oi Fusa |
In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and
returning the cached result when the same
inputs occur again.
— wikipedia
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 React from 'react' | |
| import { FormikProvider, useFormik } from 'formik' | |
| import * as yup from 'yup' | |
| import TextInputFormik from './TextInputFormik' | |
| const ReactNativeFormikExample: React.FC<unknown> = (props) => { | |
| const formik = useFormik({ | |
| initialValues: { | |
| 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
| const readlineSync = require('readline-sync'); | |
| function isValid1(answer) { | |
| return answer === 'y' | |
| } | |
| function isValid2(answer) { | |
| return Number(answer) >= 18 && Number(answer) <= 75 | |
| } |
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
| module.exports = { | |
| presets: [ | |
| '@babel/preset-react', | |
| [ | |
| '@babel/preset-env', | |
| { | |
| targets: { | |
| node: 'current', | |
| }, | |
| }, |