Skip to content

Instantly share code, notes, and snippets.

View farynaio's full-sized avatar
🎯
Focusing

Adam Faryna farynaio

🎯
Focusing
  • London, UK
View GitHub Profile
@farynaio
farynaio / gist:2a1eb382e65ab67b44d396fa44f3100f
Last active December 12, 2023 16:05
prettier.el output
;; Please create a Gist with the contents of this buffer.
;; MAKE SURE TO REMOVE ANY SENSITIVE INFORMATION FIRST
(:emacs-version
"GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0)\n of 2023-09-29"
:prettier-el-version "1.3.0" :buffer-file-name
"/home/user/foo/app/dashboard/layout.tsx"
:remote-id nil :major-mode rjsx-mode :exec-path
("/home/user/.nvm/versions/node/v20.6.1/bin")
@farynaio
farynaio / watcher.sh
Last active June 22, 2024 22:50
Scan folder for changes in files by checking mod timestamp. If change is detacted, the changed files is touched. It's handy for sync systems which doesn't notify on file changes.
#!/bin/bash
# Scan folder for changes in files by checking mod timestamp. If change is detacted, the changed files is touched
if [ -z $1 ]; then
echo "folder has to be provided"
exit
fi
FOLDER=$1
@farynaio
farynaio / LoadingIndicator.tsx
Created August 16, 2024 22:14
RN LoadingIndicator made with @motify/components
import { FC } from "react"
import { MotiView } from "@motify/components"
const LoadingIndicator: FC<{ size: number }> = ({ size }) => {
return (
<MotiView
from={{
width: size,
height: size,
borderRadius: size / 2,
@farynaio
farynaio / BottomSheet.tsx
Created March 25, 2025 14:35
RN BottomSheet component
import { Dimensions, StyleSheet, View } from 'react-native'
import React, {
PropsWithChildren,
useCallback,
useImperativeHandle,
} from 'react'
import {
Gesture,
GestureDetector,
GestureHandlerRootView,
@farynaio
farynaio / DonutChart.tsx
Created March 25, 2025 14:36
RN DonutChart component
import { useEffect, useState, useRef } from 'react'
import { Animated, StyleSheet, View, TextInput } from 'react-native'
import Svg, { G, Circle } from 'react-native-svg'
class CircleOmitter extends Circle {
public override render() {
const newProps = {
...this.props,
collapsable: undefined,
}