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 / woovi_challenge.md
Last active May 2, 2024 03:03
Woovi Challenge
@sibelius
sibelius / docusaurus.config.js
Created May 12, 2021 18:14
docusuarus webpack 5 plugin to provide node polyfills
module.exports = {
plugins: [require.resolve('./sitePlugin')],
}
@sibelius
sibelius / AppDelegate.m
Created December 7, 2016 17:26
Print Font Names on IOS for a React Native Project
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSURL *jsCodeLocation;
for (NSString* family in [UIFont familyNames])
{
NSLog(@"%@", family);
for (NSString* name in [UIFont fontNamesForFamilyName: family])
{
NSLog(@" %@", name);
@sibelius
sibelius / slack-daily.ts
Last active April 20, 2024 16:46
basic script to tag people that forget to answer daily thread
import { slackApp } from '../src/slackApp';
import { generalChannelId } from '../src/slackChannels';
import { config } from '../src/config';
import {
filterBots,
replaceMembers,
} from '../src/slack/membersMapping';
import { removeRepliedUsers } from '../src/commandMessage/dailyThreadCommand';
import { unique } from '../src/core/unique';
import { slackAllMembers } from '../src/slack/slackAllMembers';
@sibelius
sibelius / AutocompleteRelay.tsx
Last active March 23, 2024 10:13
@material-ui Autocomplete lab with react-window + infinite-loader for GraphQL/Relay connections
import React, { useRef, useState } from 'react';
import { Typography } from '@material-ui/core';
import TextField from '@material-ui/core/TextField';
import CircularProgress from '@material-ui/core/CircularProgress';
import Autocomplete, {
AutocompleteChangeDetails,
AutocompleteChangeReason,
AutocompleteProps
} from '@material-ui/lab/Autocomplete';
@sibelius
sibelius / woovi_job.md
Last active February 27, 2024 00:13
Woovi Job Description
@sibelius
sibelius / testingConcept.md
Last active February 1, 2024 17:36
testing library concept and basic test

You first need to undestand the concept of frontend tests.

You should not test the implementation but the behavior

You test like the end user

For instance, imagine a login screen with email and password inputs and a submit button

The test should input the email and the password, then click in the submit button.

@sibelius
sibelius / changelog.ts
Created January 23, 2024 16:30
create a feature-production/ branch to release to production, also create a new tag
import { exec as execCb } from 'child_process';
import dotenvSafe from 'dotenv-safe';
import fs from 'fs';
import moment from 'moment';
import path from 'path';
import semver from 'semver';
import util from 'util';
// eslint-disable-next-line
import git from 'simple-git';
// eslint-disable-next-line
@sibelius
sibelius / paragraph.md
Created January 17, 2024 14:57
paragraph structure
id title tags
paragraph
Paragraph structure
writing

import Embed from '../../src/Embed';