Skip to content

Instantly share code, notes, and snippets.

View sibelius's full-sized avatar
🦈
give me a feedback https://entria.feedback.house/sibelius

Sibelius Seraphini sibelius

🦈
give me a feedback https://entria.feedback.house/sibelius
View GitHub Profile
@sibelius
sibelius / creditas_software_engineer_backend
Created February 18, 2022 11:48
Creditas - Software Engineer Backend - Pleno
job posting https://boards.greenhouse.io/creditas/jobs/5205385002
typo
> Desenvolver para garantir uncionalidade, manutenibilidade e velocidade, além de práticas de teste e qualidade;
### Experiência em desenvolvimento Java, Kotlin, Ruby (e não só Rails), PHP, .Net, Elixir ou Scala;
- open source some REST api using this programming languages, simple CRUD could be enough
### Habilidade em desenvolver e implementar APIs;
- CRUD REST
@sibelius
sibelius / dropbox_junior.md
Created February 18, 2022 11:41
Dropbox Junior Software Engineer - how to get the job tips

job posting https://www.dropbox.com/jobs/listing/3354694?gh_src=aonhf1

0-2 years of full-time software development experience

this can be a blocker if you don't have a bit of experience

Product Engineering

  • create something that show that you can work end to end, from backend to web/mobile, show that you care about product design

Infrastructure Engineering

@sibelius
sibelius / excludedFiles
Created January 24, 2022 11:09
excluded files for webstorm
build;.jest-cache;dist;.webpack;.cache;cache;public;docs-build;.idea;prettier;dist-storybook;.docusuarus;.next;
@sibelius
sibelius / replacePkg.sh
Last active January 24, 2022 11:27
find old pkg to new pkg
find ./ -type f \( -iname \*.json -o -iname \*.js -o -iname \*.ts -o -iname \*.tsx \) -not \( -path "*/node_modules/*" -prune \) -exec sed -i '' "s/@old/@new/g" {} +
@sibelius
sibelius / asyncMentoring.md
Last active November 23, 2022 22:16
async mentoring rules

Async Mentorship

Most mentees belive that they need sync mentorship to be able to explain their problems. However, I've found that doing an async mentorship using text to provide better results. Mentorship is a long term process, you can't "fix" or "improve" someone in a session, it takes time.

image

Mentorship Cycle

The mentee will pass in the 3 steps of the mentorship cycle. The first one is to be in a given situation, or having some problem or doubt.

@sibelius
sibelius / crypto.js
Created December 8, 2021 22:12
crypto module mock
const crypto = jest.requireActual('crypto');
const Chance = require('chance');
const chances = {};
const mockCrypto = Object.create(crypto);
mockCrypto.randomBytes = (size, seed = 42, callback) => {
if (typeof seed === 'function') {
// eslint-disable-next-line no-param-reassign
callback = seed;
@sibelius
sibelius / earlyReturn.ts
Created November 17, 2021 13:12
early return to check required condition
export const fn = async () => {
if (!requiredCondition) {
return;
}
if (!anotherRequiredCondition) {
return
}
await mainCode();
@sibelius
sibelius / floatToCents.ts
Created September 29, 2021 16:32
convert a float to cents
export const floatToCents = (value: number): number => {
return parseInt((value * 100).toFixed(2), 10);
}
@sibelius
sibelius / reportJsonExcel.ts
Created September 15, 2021 21:05
Automate your reports using JavaScript
import path from 'path';
import util from 'util';
import fs from 'fs';
import * as XLSX from 'xlsx';
const writeFile = util.promisify(fs.writeFile);
const cwd = process.cwd();
@sibelius
sibelius / graphqlHandler.ts
Created September 15, 2021 19:15
GraphQL Handler using GraphQL Helix for Nextjs
const graphqlHandler = async (req: NextApiRequest, res: NextApiResponse) => {
const request = {
body: req.body,
headers: req.headers,
method: req.method,
query: req.query,
};
if (shouldRenderGraphiQL(request)) {
res.send(