This file contains 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 { supabase } from "@/lib/supabase"; | |
import { useAuth } from "@/services/auth/useAuth"; | |
import { useEffect } from "react"; | |
import { trpc } from "@/utils/trpc"; | |
export function useRealtime() { | |
// your auth setup to get current user id | |
const { session } = useAuth(); | |
const userId = session?.user.id; | |
This file contains 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 React, { useRef, useEffect } from "react"; | |
import type { ComponentType } from "react"; | |
export function withLightboxEffect(Component: ComponentType): ComponentType { | |
return (props) => { | |
const ref = useRef<HTMLDivElement | null>(null); | |
useEffect(() => { | |
// Function to open the clicked image in a lightbox with a fade-in transition | |
const openLightbox = (imgSrc: string) => { |
This file contains 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 { useWindowDimensions } from 'react-native' | |
import { Gesture } from 'react-native-gesture-handler' | |
import Animated, { | |
Extrapolation, | |
WithSpringConfig, | |
interpolate, | |
scrollTo, | |
useAnimatedRef, | |
useAnimatedScrollHandler, | |
useAnimatedStyle, |
This file contains 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
{ | |
"title": "Change modifiers to arrows", | |
"rules": [ | |
{ | |
"description": "Change right_shift to top_arrow if pressed alone", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "right_shift", |
This file contains 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
{ | |
"title": "Change rk61 Keyboard escape behavior", | |
"rules": [ | |
{ | |
"description": "Change left option+escape to escape - 2", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "escape", | |
"modifiers": { |
This file contains 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
{ | |
"title": "Change rk61 Keyboard escape behavior", | |
"rules": [ | |
{ | |
"description": "Change left option+escape to escape", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "escape", | |
"modifiers": { |
This file contains 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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
This file contains 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
# migrating from https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh | |
# Aliases | |
alias g='git' | |
#compdef g=git | |
alias gst='git status' | |
#compdef _git gst=git-status | |
alias gd='git diff' | |
#compdef _git gd=git-diff | |
alias gdc='git diff --cached' |
This file contains 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
[ | |
{ | |
region: "Región Metropolitana de Santiago", | |
comunas: [ | |
"Cerrillos", | |
"Cerro Navia", | |
"Conchalí", | |
"El Bosque", | |
"Estación Central", | |
"Huechuraba", |
This file contains 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
/** | |
* Flickity Component | |
* Flickity Version: 2.0.9 | |
* @link https://github.com/drewjbartlett/vue-flickity/blob/master/flickity.vue | |
*/ | |
<style lang="scss"> | |
@import "../../../scss/libs"; | |
@import "../../../scss/settings"; |
NewerOlder