Skip to content

Instantly share code, notes, and snippets.

View hgodinez89's full-sized avatar
👨‍💻
<> Coding and Coding </>

Hanzel Godinez hgodinez89

👨‍💻
<> Coding and Coding </>
View GitHub Profile
import shelve
repos = shelve.open("github_repos")
repos['SimpleBuy'] = ('hgodinez89', 'Online store', '1.0')
repos['login-app'] = ('hgodinez89', 'Login', '1.0')
print(repos['login-app'])
repos['login-app'] = ('hgodinez89', 'Login with Firebase', '1.0')
x [ 1 3 4 ]
Positive Index 0 1 2
Negative Index -3 -2 -1
x [ 1 3 4 ]
Indice Positivo 0 1 2
Indice Negativo -3 -2 -1
@hgodinez89
hgodinez89 / Generate 64 bits apk
Created July 6, 2019 18:28
Generar apk de 64 bits en build.gradle de Android Flutter
afterEvaluate {
mergeReleaseJniLibFolders.doLast {
def archTypes = ["arm-release", "arm64-release"]
archTypes.forEach { item ->
copy {
from zipTree("$flutterRoot/bin/cache/artifacts/engine/android-$item/flutter.jar")
include 'lib/*/libflutter.so'
into "$buildDir/intermediates/jniLibs/release/"
eachFile {
it.path = it.path.replaceFirst("lib/", "")
@hgodinez89
hgodinez89 / preferencias_usuario.dart
Created July 6, 2019 02:47
Gist para almacenar preferencias del usuario en storage local del movil
import 'package:shared_preferences/shared_preferences.dart';
/*
Recordar instalar el paquete de:
shared_preferences:
Inicializar en el main
final prefs = new PreferenciasUsuario();
await prefs.initPrefs();
Recuerden que el main() debe de ser async {...
@hgodinez89
hgodinez89 / index.html
Created January 25, 2019 04:04
HTML: Codigo Basico
<!DOCTYPE html>
<html>
<head>
<title>Mi pagina web</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="stylesheet" href="estilos.css">
</head>
<body>