Advanced Search
Search Results
84 total results found
Utility
# Buscar ip de un raspberry pi en la red local sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
A1.1
(español) [pronunciación] das Wörterbuch (el diccionario) https://www.leo.org/alem%C3%A1n-espa%C3%B1ol/ (tiene audio) grüßen (Saludar) die Frage (la pregunta): Wie heißen Sie? (¿Cómo se llama usted?) die Antwort (la respuesta): Ich heiße Lydia Wirt...
Cómo crear íconos de apps con Image Asset Studio
https://developer.android.com/studio/write/image-asset-studio
React Native - Agregar Splash Screen
https://www.netguru.com/codestories/react-native-splash-screen https://www.npmjs.com/package/react-native-splash-screen https://github.com/crazycodeboy/react-native-splash-screen @Override protected void onCreate(@Nullable Bundle savedInstanceState) { ...
React Native - javaMaxHeapSize
# android/app/build.gradle dexOptions { javaMaxHeapSize "4g" } # android/gradle.properties org.gradle.jvmargs=-Xmx4608M
Flutter - build apk
https://flutter.dev/docs/deployment/android flutter build apk flutter build apk --split-per-abi flutter build appbundle # cd android ./gradlew clean ./gradlew build
Flutter - commands
flutter pub get flutter run
Flutter - Buttons, Containers, TextFields
// Container with BorderRadius circular and border, and antoher container inside Container( width: 60, height: 60, decoration: BoxDecoration( borderRadius: BorderRadius.circular(30.0), border: Border.all(color: Colors.blueAccent, width:...
Remove node_modules
# -- Linux # Print out a list of directories to be deleted: find . -name 'node_modules' -type d -prune # Delete directories from the current working directory: find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + # -- All npx npkill
Flutter - sizes
MediaQuery.of(context).size.height MediaQuery.of(context).size.width
Dark Light Mode
:root { --bg-color: #fafafa; --font-color-2: #515151; --font-color: #626262; } @media (prefers-color-scheme: dark){ :root { --bg-color: #030814; --font-color-2: #a4a4a4; --font-color: #e0e0e0; } } body{ background-...
Dart - Singleton
class SPSettings { // ---------- Singleton --------- static SPSettings _instance; SPSettings._internal(); factory SPSettings() { if(_instance == null){ _instance = SPSettings._internal(); } return _instance; } ...
React - Optimize Performance
Case 1 - Preventing Wasted Renders with Complex Props Create new object reference before delete a key. Class Function Case 2 - Preventing Wasted Renders in a Simple Component Class Function Before After Caching Expensive Operatio...
React - Testing
Ruby on Rails - Commands
# install ruby on rails gem install rails bundle install rails new first-api --api --database=postgresql rails generate resource User username:string password_digest:string rails g resource Post title content user_id:integer bundle install E...
CSS - Tricks
& .breadcrumbs-container .breadcrumb span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .element::-webkit-scrollbar { display: none; } /* Hide scrollbar for IE, Edge and Firefox */ .element { -m...
Linux - Cron Tabs
# Ubuntu cron tab file location: # /var/spool/cron/crontabs/ # list crontabs crontab -l # sudo service cron reload sudo /etc/init.d/cron start sudo /etc/init.d/cron stop sudo /etc/init.d/cron status
Running test (jest) node.js on Windows
node ./node_modules/jest/bin/jest.js --runInBand
CSS Grid
.itemsContainer { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, 400px); justify-content: space-around; } @media (max-width: 500px) { .itemsContainer { grid-template-columns: none; } }
Useful commands
psql -h localhost -p 3700 -U postgres < backup_date-15-04-2022_00-00-00-production.sql #Para cargar un .sql a la maquina