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, { forwardRef } from "react"; | |
import MaterialTable from "material-table"; | |
import AddBox from "@material-ui/icons/AddBox"; | |
import ArrowDownward from "@material-ui/icons/ArrowDownward"; | |
import Check from "@material-ui/icons/Check"; | |
import ChevronLeft from "@material-ui/icons/ChevronLeft"; | |
import ChevronRight from "@material-ui/icons/ChevronRight"; | |
import Clear from "@material-ui/icons/Clear"; | |
import DeleteOutline from "@material-ui/icons/DeleteOutline"; | |
import Edit from "@material-ui/icons/Edit"; |
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
public class SpringRegistroApplication { | |
public static void main(String[] args) { | |
int[] input = {4,9,1,2,3, 6, 5, 8}; | |
int[] pattern = {1,4,5,3,9,2}; | |
List<Integer> result = new ArrayList<>(); | |
Set<Integer> remainder = new HashSet<>(); | |
//valor inicial a evaluar en el patron |
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, { useState } from "react"; | |
import "./styles.css"; | |
import WeekPlan from "./WeekPlan"; | |
import dateFns from 'date-fns' | |
export default function App() { | |
const [block, setBlock] = useState([]); | |
const handleBlock = (e) => { | |
if (e.key === 'Enter') { |
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
docker run -p 3306:3306 -d --name bestdocdb -e MYSQL_ROOT_PASSWORD=pass mariadb/server:10.4 |
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
#usuarios: al objeto en firebase | |
firebase.database().ref('usuarios').set('objeto con valores') | |
#otra manera el child es el objeto hijo | |
firebase.database().ref('usuarios').child('1').set('objeto con valores') | |
#manejo de errores | |
firebase.database().ref('usuarios') | |
.child('1') | |
.set('objeto con valores', fuction(error){ |
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
## docker-compose para correr wordpress con una base de datos en mysql | |
## by PeladoNerd https://youtu.be/eoFxMaeB9H4 | |
version: '3.1' | |
services: | |
wordpress: | |
image: wordpress:php7.1-apache | |
ports: |
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 f = new Date(); | |
var currentMonth = f.getMonth() +1; | |
if (currentMonth < 10) { currentMonth = '0' + currentMonth; } | |
var today = f.getFullYear().toString() + currentMonth + f.getDate().toString(); |
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
// LOCATIONS | |
var API_KEY = 'YOUR_API_KEY' | |
var API_KEY2 = 'YOUR_API_KEY2'// ONLY ONE NEEDED | |
var url = 'https://www.googleapis.com/geolocation/v1/geolocate?key='+API_KEY2; | |
var config = { | |
method: 'POST' | |
} |