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 { 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, | |
} |
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 { Dimensions, StyleSheet, View } from 'react-native' | |
import React, { | |
PropsWithChildren, | |
useCallback, | |
useImperativeHandle, | |
} from 'react' | |
import { | |
Gesture, | |
GestureDetector, | |
GestureHandlerRootView, |
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 { FC } from "react" | |
import { MotiView } from "@motify/components" | |
const LoadingIndicator: FC<{ size: number }> = ({ size }) => { | |
return ( | |
<MotiView | |
from={{ | |
width: size, | |
height: size, | |
borderRadius: size / 2, |
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
#!/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 |
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
;; 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") |
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
(defun afa/edebug-on-entry-on-point (&optional flag) | |
"Enhanced `edebug-on-entry'. | |
ets function symbol on point as initial suggestion." | |
(interactive "P") | |
(let ((function-name | |
(intern | |
(funcall | |
completing-read-function | |
"Edebug on entry to: " | |
(mapcar 'symbol-name (apropos-internal ".*")) |
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
(defvar aok/read-only-folders | |
'("/usr/share/emacs" "~/.emacs.d/straight") | |
"Files in these folders will be opened in read-only mode.") | |
(defun aok/file-set-read-only-if-listed () | |
"Set current file buffer as `read-only' if it's in `aok/read-only-folders'." | |
(when (seq-some (lambda (i) (string-prefix-p (expand-file-name i) buffer-file-name)) aok/read-only-folders) | |
(read-only-mode 1))) | |
(add-hook 'find-file-hook 'aok/file-set-read-only-if-listed) |
[alias]
# list all aliases
la = "!git config -l | grep alias | cut -c 7-"
# log as graph tree
ls = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all --branches
# formated log with stats
ll = log --pretty=format:'* %Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --decorate --numstat --all --branches
# log as series of patches
fl = log -p
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
#!/bin/sh | |
read oldrev newrev refname | |
prefix="refs/heads/" | |
branch=${$refname#$prefix} | |
git push github $branch |
NewerOlder