Skip to content

Instantly share code, notes, and snippets.

View buskerone's full-sized avatar
🎾

Carlos Knopel buskerone

🎾
View GitHub Profile
@jonahcoyote
jonahcoyote / divi-slider-auto-height.css
Created January 23, 2019 17:34
Divi Slider Module Auto Height
/* === Begin: Set the divi slider to auto height === */
/* Desktop */
.auto-height-slider .et_pb_slide .et_pb_container {
height: auto !important;
min-height: auto !important;
}
/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 980px) {
.auto-height-slider .et_pb_slide .et_pb_container {
@diegoulloao
diegoulloao / ip.txt
Last active August 19, 2021 15:14
Agrega alias para obtener IP Pública desde macOS Terminal
cd $HOME && echo "alias 'ip'='IP=\`dig +short myip.opendns.com @resolver1.opendns.com\` && echo \$IP && echo \$IP | pbcopy'" >> .bash_profile
@aksonov
aksonov / rnrf.md
Last active August 26, 2024 12:27
Proposal for lightning talk at ReactiveConf 2017: What is RNRF (react-native-router-flux)?

What is RNRF (react-native-router-flux)?

React Native is great product but lacks for stable, intuitive and easy navigation API during many years. Every year we see new, better API: Native Navigator, ex-Navigator, NavigationExperimental, ex-Navigation, wix native navigation, airbnb native navigation, ReactNavigation...

Once I've started React Native development, in 2015, I created RNRF - simple API for easy navigation. It was clear that better navigation instruments will come later but I didn't want to change my code again and again to switch for better API. Every new major version of RNRF is based on different navigation framework and mostly preserves own API.

Another goal was to represent all navigation flow within one place in clear, human-readable way - similar to iOS Storyboards concept. This way other engineers could understand your app flow faster.

@heron2014
heron2014 / react-native-maps-enable-google-maps-instructions.md
Last active May 21, 2024 07:25
Visual instructions how to enable Google Maps on IOS using react-native-maps

Visual instructions how to enable Google Maps on IOS using react-native-maps

UPDATE: Following instructions are now a year old. I have recently managed to upgrade react-native-maps from 0.17 to the latest version 0.21 with react-native 0.51 - if you want to follow my instruction scroll down to the end this doc! Hope that will work for you too!

This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps

Steps from scratch:

1.react-native init GoogleMapPlayground

@EQuimper
EQuimper / sh
Created December 2, 2016 21:28 — forked from rexlow/md
Run React Native on specific iOS simulator version
//by default
//react-native run-ios
//iPhone 4
react-native run-ios --simulator "iPhone ${1:-4}"
//iPhone 4s
react-native run-ios --simulator "iPhone ${1:-4s}"
//iPhone 5
@varmais
varmais / thinced.js
Created October 1, 2015 19:43
Geolocation to Promise wrap example
var getPosition = function (options) {
return new Promise(function (resolve, reject) {
navigator.geolocation.getCurrentPosition(resolve, reject, options);
});
}
getPosition()
.then((position) => {
console.log(position);
})
@ksc91u
ksc91u / gist:f167a7d56e0c2646c9c8
Last active February 19, 2018 10:21
aapt malformed 9 patch image
#!/bin/bash
enable pwd
args=("$@")
DIR="$(cd "$(dirname "$0")" && pwd)"
case "${args[@]}" in
*".9.png"*)
$DIR/aapt.17 $@
;;