by Juan Ramón Gavilanes (jrgavilanes@gmail.com)
This file contains hidden or 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 pymysql | |
| import pymongo | |
| # Set mongo connection | |
| connection = pymongo.MongoClient(host_mongo, port_mongo) | |
| db = connection[bd_mongo] | |
| db.authenticate(user_mongo, pass_mongo) | |
| notes = db.collection_name | |
| # Set mysql connection |
This file contains hidden or 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
| superindice = {} | |
| def indexa(id, content, index): | |
| for word in set(content.lower().split()): | |
| if word not in index: | |
| index[word] = [id] | |
| else: | |
| if id not in index[word]: | |
| index[word].append(id) |
This file contains hidden or 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
| package es.codekai.firebase_curso | |
| import androidx.appcompat.app.AppCompatActivity | |
| import android.os.Bundle | |
| import android.widget.Toast | |
| import com.google.firebase.database.DataSnapshot | |
| import com.google.firebase.database.DatabaseError | |
| import com.google.firebase.database.ValueEventListener | |
| import com.google.firebase.database.ktx.database | |
| import com.google.firebase.ktx.Firebase |
This file contains hidden or 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
| version: '3' | |
| services: | |
| # Database | |
| db: | |
| image: mysql:5.7 | |
| ports: | |
| - '3306:3306' | |
| volumes: | |
| - db_data:/var/lib/mysql |
This file contains hidden or 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
| version: "3.7" | |
| services: | |
| db: | |
| image: postgres:12.2 | |
| restart: always | |
| environment: | |
| POSTGRES_DB: postgres | |
| POSTGRES_USER: admin | |
| POSTGRES_PASSWORD: secret | |
| PGDATA: /var/lib/postgresql/data |
This file contains hidden or 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
| package com.example.test | |
| import androidx.appcompat.app.AppCompatActivity | |
| import android.os.Bundle | |
| import android.text.Editable | |
| import android.text.TextWatcher | |
| import com.example.test.databinding.ActivityMainBinding | |
| class MainActivity : AppCompatActivity() { |
This file contains hidden or 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
| package com.example.test | |
| import androidx.appcompat.app.AppCompatActivity | |
| import android.os.Bundle | |
| import android.text.Editable | |
| import android.text.TextWatcher | |
| import androidx.core.text.set | |
| import com.example.test.databinding.ActivityMainBinding | |
| class MainActivity : AppCompatActivity() { |
This file contains hidden or 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
| #built application files | |
| *.apk | |
| *.ap_ | |
| *.aab | |
| # files for the dex VM | |
| *.dex | |
| # Java class files | |
| *.class |
Notas curso
https://codigofacilito.com/videos/crear-arreglos
$ python -m venv venv
$ . venv/Scripts/activate // windows
OlderNewer