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 {useEffect, useRef} from 'react' | |
const useEffectAfterMount = ( effect, deps ) => { | |
const isMounted = useRef(false) | |
useEffect(() => { | |
if (isMounted.current) { | |
return effect() | |
} else { | |
isMounted.current = true | |
} | |
}, [deps]) |
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
[ | |
{ | |
"id": 0, | |
"address": "1135 Lowe Expressway", | |
"avatar": "https://s3.amazonaws.com/uifaces/faces/twitter/herbigt/128.jpg", | |
"cover": "http://lorempixel.com/500/200/abstract", | |
"color": "#1e1409", | |
"description": "Use the virtual HTTP protocol, then you can copy the virtual protocol!", | |
"email": "[email protected]", | |
"name": "Antwon Schoen", |
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
.loader { | |
animation: rotate 1s infinite; | |
height: 50px; | |
width: 50px; | |
} | |
.loader:before, | |
.loader:after { | |
border-radius: 50%; | |
content: ''; |
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
{ | |
"users": [ | |
{ | |
"id": 0, | |
"address": "1135 Lowe Expressway", | |
"avatar": "https://s3.amazonaws.com/uifaces/faces/twitter/herbigt/128.jpg", | |
"cover": "http://lorempixel.com/500/200/abstract", | |
"color": "#1e1409", | |
"description": "Use the virtual HTTP protocol, then you can copy the virtual protocol!", | |
"email": "[email protected]", |
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
[ | |
{ | |
"thumbnail": "https://raw.githubusercontent.com/PaulTR/GettingStartedWithAndroid/master/images/gallery/thumbnail_grizzly.jpg", | |
"image": "https://raw.githubusercontent.com/PaulTR/GettingStartedWithAndroid/master/images/gallery/grizzly.jpg", | |
"caption": "The grizzly bear is ative to North America and the official animal for my home state of California" | |
}, | |
{ | |
"thumbnail": "https://raw.githubusercontent.com/PaulTR/GettingStartedWithAndroid/master/images/gallery/thumbnail_blackfootedcat.jpg", | |
"image": "https://raw.githubusercontent.com/PaulTR/GettingStartedWithAndroid/master/images/gallery/blackfootedcat.jpg", | |
"caption": "The black footed cat, a desert variety of cat, is the smallest species of feline in Africa" |
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
[ | |
{ | |
"name": "Reticulated Giraffe", | |
"species": "Giraffa camelopardalis reticulata", | |
"description": "The reticulated giraffe (Giraffa camelopardalis reticulata), also known as the Somali giraffe, is a subspecies of giraffe native to Somalia, southern Ethiopia, and northern Kenya. Reticulated giraffes can interbreed with other giraffe subspecies in captivity or if they come into contact with populations of other subspecies in the wild. \nThe reticulated giraffe is among the most well-known of the nine giraffe subspecies. Together with the Rothschild giraffe, it is by far the giraffe most commonly seen in zoos. Its coat consists of large, polygonal, liver-colored spots outlined by a network of bright-white lines. The blocks may sometimes appear deep red and may also cover the legs. The extraordinary height of giraffes is attributed to a ritual known as \"necking\", where two males fight for reproduction rights by slamming their necks into one another. The giraffes with the tallest and |
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
(function () { | |
'use strict'; | |
angular.module('app') | |
.factory('Storage', [function () { | |
var fn = {}; | |
fn.has = function (key) { | |
var value = window.localStorage.getItem(key); | |
return !!value; | |
} |
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
<?php | |
// Put your device token here (without spaces): | |
$deviceToken = '6fec50b864578203fb9211c98fb39e9bfa808b9c0ac7183a5405deca9a462aed'; | |
// Put your private key's passphrase here: | |
$passphrase = 'elpassworddelcertificado'; | |
// Put your alert message here: | |
$message = 'Alguien busca tus productos!'; |
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
<style> | |
html, body { | |
background-image: url(http://rancherita.com.mx/images/bg-tecno-red.jpg); | |
background-repeat: no-repeat; | |
background-position: center top; | |
background-size: cover; | |
margin: 0; | |
padding:0; | |
height: 100%; | |
} |
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
var app = app || {}; | |
;(function($){ | |
app.MapHandlerView = { | |
cache: function() { | |
this.$wrapper = $('#location-area'); | |
this.$inputCountry = this.$wrapper.find('input[name="pais"]'); | |
this.$inputstate = this.$wrapper.find('input[name="estado"]'); | |
this.$inputCity = this.$wrapper.find('input[name="ciudad"]'); |
NewerOlder