Este ejercicio te permitirá practicar algunos de los comandos básicos de Git, como:
git init
git add
git commit
git branch
git checkout
git merge
const randomstring = require('randomstring'); | |
const badWords = require('./profanity.js'); // array to get the "black-list" | |
function genRandomCodes(quantity, length) { | |
const codes = new Set(); | |
while (codes.size <= quantity) { | |
let code = randomstring.generate(length, true); | |
// This conditional is the ´code´ when this contains profane language |
// Progressive loading images | |
const imagesToLoad = document.querySelectorAll("img[data-src]"); | |
const loadImages = (image) => { | |
image.setAttribute("src", image.getAttribute("data-src")); | |
image.onload = () => { | |
image.removeAttribute("data-src"); | |
}; | |
}; | |
if ("IntersectionObserver" in window) { |
# The first thing to do is to confirm that the fcm key is uploaded in order to send the pushes correctly. | |
expo push:android:show | |
# If not configured, proceed to obtain it. | |
[url](https://stackoverflow.com/a/37427911/4020055) | |
# After we have the key, we proceed to configure it in expo | |
expo push:android:upload --api-key {fcm server key} |
Este ejercicio te permitirá practicar algunos de los comandos básicos de Git, como:
git init
git add
git commit
git branch
git checkout
git merge
version: '3' | |
services: | |
mysql: | |
image: mysql:latest | |
container_name: docker-mysql | |
command: --default-authentication-plugin=mysql_native_password | |
environment: | |
MYSQL_DATABASE: database_name | |
MYSQL_USER: my_username |
import spotipy | |
from spotipy.oauth2 import SpotifyOAuth | |
# ID de la playlist que deseas reorganizar | |
playlist_id = '' | |
client_id = '' | |
client_secret = '' | |
redirect_uri = 'http://localhost:8000/callback/' | |
def find_repeated_tracks(tracks): |
import React, { useState, useEffect } from 'react'; | |
import { StyleSheet, Text, View, ScrollView, FlatList } from 'react-native'; | |
import axios from 'axios'; | |
import { Card } from 'react-native-paper'; | |
import { FlashList } from "@shopify/flash-list"; | |
export default function App() { | |
const [loading, setLoading] = useState(true); | |
const [data, setData] = useState([]); |