Skip to content

Instantly share code, notes, and snippets.

View bidah's full-sized avatar

Rodrigo Figueroa bidah

View GitHub Profile
@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";
##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.
@bidah
bidah / lodashify.js
Created August 1, 2017 22:59
to import lodash into chrome dev tools console
var el = document.createElement('script');
el.src = "https://cdn.jsdelivr.net/lodash/4.11.1/lodash.min.js";
el.type = "text/javascript";
document.head.appendChild(el);
// Use the following in a bookmarklet:
javascript:var el=document.createElement('script');el.src="https://cdn.jsdelivr.net/lodash/4.11.1/lodash.min.js";el.type = "text/javascript";document.head.appendChild(el);