Skip to content

Instantly share code, notes, and snippets.

View wolfcito's full-sized avatar
🐺
Sufre el dolor de la disciplina o sufre el dolor del arrepentimiento!

Luis Fernando Ushiña wolfcito

🐺
Sufre el dolor de la disciplina o sufre el dolor del arrepentimiento!
View GitHub Profile
@wolfcito
wolfcito / setenv.sh
Created June 3, 2020 02:21 — forked from terrancesnyder/setenv.sh
./setenv.sh - example setenv.sh with defaults set for minimal time spent in garbage collection
#! /bin/sh
# ==================================================================
# ______ __ _____
# /_ __/___ ____ ___ _________ _/ /_ /__ /
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / /
# / / / /_/ / / / / / / /__/ /_/ / /_ / /
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/
# Multi-instance Apache Tomcat installation with a focus
# on best-practices as defined by Apache, SpringSource, and MuleSoft
yarn add @react-navigation/native @react-navigation/stack react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view @react-navigation/bottom-tabs @react-native-community/async-storage
@wolfcito
wolfcito / gist:acda665e2287f7824465289b0839be69
Created March 7, 2021 17:43
Solve Error 3 - react-nativa
adb uninstall PACKAGE_NAME
Plugins:
- Prettier
- Auto Rename Tag
[Ctrl+,] >> Settings > change editor ui "ui" to "json"
{
"workbench.settings.editor": "json",
"editor.fontSize": 13,
@wolfcito
wolfcito / react-native-config.md
Last active April 20, 2021 04:56
Configuración React-Native (personalización nombre, personalización cambio icono, generación APK)

Personalizar el nombre paquete:

buscar com.<antiguo.nombre.paquete> por reemplazar nuevo.nombre.paquete Los nombres de los paquetes dependerán de los cambios en las difentes versiones, pero usualmente los archivos a modificar son: <nombre-aplicacion-id>

  • android/app/src/main/java/com//MainActivity.java
  • android/app/src/main/java/com//MainApplication.java
  • android/app/src/debug/java/com//ReactNativeFlipper.java
  • android/app/src/main/AndroidManifest.xml
  • android/app/build.gradle
  • android/app/BUCK
@wolfcito
wolfcito / Buenas prácticas - lineamientos buenos al momento de programar.md
Last active November 7, 2023 19:07
Buenas prácticas / lineamientos buenos al momento de programar

Buenas prácticas

  1. Evita en lo posible dejar código que no se utiliza: Eliminar código no utilizado es una excelente práctica. Puede ayudar a reducir la complejidad y el mantenimiento innecesario.

  2. Comenta tu código cuando sea muy extenso y/o complejo de entender: Comentar el código complejo o poco intuitivo puede facilitar la comprensión para otros desarrolladores. Sin embargo, es mejor escribir código autoexplicativo siempre que sea posible.

  3. Utiliza software para control de versiones (GIT): El uso de control de versiones como Git es fundamental para rastrear y gestionar cambios en el código.

@wolfcito
wolfcito / .deps...npm...hardhat...console.sol
Created May 25, 2022 16:44
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;
library console {
address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);
function _sendLogPayload(bytes memory payload) private view {
uint256 payloadLength = payload.length;
address consoleAddress = CONSOLE_ADDRESS;
assembly {
@wolfcito
wolfcito / wolfcito-settings.json
Created February 11, 2023 16:05
Wolfcito configuration for visual code
{
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"typescript.updateImportsOnFileMove.enabled": "always",
"editor.tabSize": 2,
"editor.formatOnSave": true,
@wolfcito
wolfcito / .prettierrc.json
Created June 3, 2023 02:57
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false
@wolfcito
wolfcito / .prettierrc.json
Created June 3, 2023 03:00
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.18+commit.87f61d96.js&optimize=false&runs=200&gist=
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false