Skip to content

Instantly share code, notes, and snippets.

View bidah's full-sized avatar

Rodrigo Figueroa bidah

View GitHub Profile
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;
@bidah
bidah / SplitScreen.tsx
Created November 14, 2023 23:55 — forked from smontlouis/SplitScreen.tsx
Amie in-app split screen in react-native
import { useWindowDimensions } from 'react-native'
import { Gesture } from 'react-native-gesture-handler'
import Animated, {
Extrapolation,
WithSpringConfig,
interpolate,
scrollTo,
useAnimatedRef,
useAnimatedScrollHandler,
useAnimatedStyle,
{
"title": "Change modifiers to arrows",
"rules": [
{
"description": "Change right_shift to top_arrow if pressed alone",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "right_shift",
{
"title": "Change rk61 Keyboard escape behavior",
"rules": [
{
"description": "Change left option+escape to escape - 2",
"manipulators": [
{
"from": {
"key_code": "escape",
"modifiers": {
{
"title": "Change rk61 Keyboard escape behavior",
"rules": [
{
"description": "Change left option+escape to escape",
"manipulators": [
{
"from": {
"key_code": "escape",
"modifiers": {
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
# 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'
[
{
region: "Región Metropolitana de Santiago",
comunas: [
"Cerrillos",
"Cerro Navia",
"Conchalí",
"El Bosque",
"Estación Central",
"Huechuraba",
/**
* 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";