Skip to content

Instantly share code, notes, and snippets.

View Fausto95's full-sized avatar

Faustino Kialungila Fausto95

View GitHub Profile
@Fausto95
Fausto95 / details.md
Created September 8, 2025 13:34
Details example

Details

Click me
function logSomething(something) {
  console.log('Something', something);
}
@Fausto95
Fausto95 / BarTest.tsx
Created January 25, 2025 06:31 — forked from hirbod/BarTest.tsx
Reanimated CSS 4 Search Bar Header Replica (hacked together quick and dirty, no support!)
import { useSafeAreaInsets } from 'react-native-safe-area-context'
import { useCallback, useLayoutEffect, useMemo, useReducer, useRef, useState } from 'react'
import { ActivityIndicator, Keyboard, Platform, Text, View, TextInput, useWindowDimensions } from 'react-native'
import Animated from 'react-native-reanimated'
const SearchBar = () => {
const inset = useSafeAreaInsets()
const [isFocused, toggle] = useReducer((s) => !s, false)
const ref = useRef<Animated.View>(null)
const rect = useSharedValue({ width: 0 })
@Fausto95
Fausto95 / VS Code - Extensions List.txt
Last active May 12, 2024 20:15
Zed & VS Code Config
code --install-extension aaron-bond.better-comments
code --install-extension asvetliakov.vscode-neovim
code --install-extension christian-kohler.path-intellisense
code --install-extension dbaeumer.vscode-eslint
code --install-extension drcika.apc-extension
code --install-extension eamodio.gitlens
code --install-extension esbenp.prettier-vscode
code --install-extension formulahendry.auto-close-tag
code --install-extension formulahendry.auto-rename-tag
code --install-extension formulahendry.code-runner
@Fausto95
Fausto95 / App.js
Last active December 14, 2023 18:52
React Native Modal Queue
import { useModals, ModalsIndexContextProvider } from './useModals';
import { SafeAreaView, StyleSheet, Text } from 'react-native';
function App_() {
const Modal = useModals();
return (
<SafeAreaView style={styles.container}>
<Text>Hello</Text>
@Fausto95
Fausto95 / .zed-keybindings.json
Created July 17, 2023 08:14
Zed Key Bindinds
[
{
"context": "Editor",
"bindings": {
"ctrl-cmd-up": "editor::SelectLargerSyntaxNode",
"ctrl-cmd-down": "editor::SelectSmallerSyntaxNode",
"alt-up": "editor::MoveLineUp",
"alt-down": "editor::MoveLineDown",
"alt-shift-up": [
"editor::DuplicateLine",
import { match, __ } from 'ts-pattern';
const result = match({ project, projectCard, contact, contactCard })
.with({ project: __, projectCard: __ }, ({ projectCard }) => projectCard)
.with({ contact: __, contactCard: __ }, ({ contactCard }) => contactCard)
.otherwise(() => null);
@Fausto95
Fausto95 / starship.toml
Created November 28, 2022 08:38
Starship
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = true
# Replace the "❯" symbol in the prompt with "➜"
[character] # The name of the module we are configuring is "character"
success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
@Fausto95
Fausto95 / Errors.js
Created October 5, 2022 10:23
Errors
export class ForbiddenError extends Error {
constructor(message: string) {
super(message);
this.name = 'ForbiddenError';
this.description = 'Error encountered fetching an API having a response with 403 status code.';
Error.captureStackTrace && Error.captureStackTrace(this, ForbiddenError);
}
}
@Fausto95
Fausto95 / list.text
Created November 22, 2019 19:19
My VS Code Extensions List
code --install-extension ahmadawais.shades-of-purple
code --install-extension akamud.vscode-theme-onedark
code --install-extension bernardodsanderson.theme-material-neutral
code --install-extension bierner.color-info
code --install-extension bierner.markdown-mermaid
code --install-extension bpruitt-goddard.mermaid-markdown-syntax-highlighting
code --install-extension brapifra.phpserver
code --install-extension burkeholland.simple-react-snippets
code --install-extension capaj.vscode-exports-autocomplete
code --install-extension CoenraadS.bracket-pair-colorizer

Five Different Things(to consider while learning new programming languages)

  • Syntax: How do you write language constructs?
  • Semantics: What do programs mean? (Evaluation rules)
  • Idioms: What are typical patterns for using language features to express your computation?
  • Libraries: What facilities does the language (or a well-known project provide "standard"? (E.g., file access, data structures)
  • Tools: What do language implementations provide to make your job easier? (E.g., REPL, debugger, code formatter, ...)