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"; |
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
##Install Ruby Version Manager | |
RVM is a great tool that lets you run different versions of Ruby on your computer. This is really useful because if you know one project you're working on works with Ruby version 2.1.0 and another needs 2.3.0, you can easily switch between the two versions when you switch between projects. You can install it and set it up with the following commands: | |
Run `curl -sSL https://get.rvm.io | bash` -make sure you do not use `sudo` | |
ONCE THIS STEP COMPLETES, CLOSE AND RE-OPEN YOUR TERMINAL. Skipping this step will cause RVM to not work. | |
Run `rvm install 2.3.1` | |
Run `rvm use 2.3.1 --default` | |
Check that everything worked by running `ruby -v` and `rvm list`. This should output the version of ruby you're using (2.3.1) and the list of versions available with your RVM install. | |
##Install some ruby gems | |
Ruby gems are pre written, stand alone, chunks of code that have been written and made easily accessible to you. |
NewerOlder