Skip to content

Instantly share code, notes, and snippets.

View fitomad's full-sized avatar
🫥
Swift + AI/ML/ DL + Azure + AWS + Vapor

Adolfo fitomad

🫥
Swift + AI/ML/ DL + Azure + AWS + Vapor
View GitHub Profile
@fitomad
fitomad / SwiftUI-previews-delete.sh
Last active October 4, 2022 11:32
Delete Xcode SwiftUI Previews in a Secure Way
#!/bin/zsh
# Close Xcode, then run this script
xcrun simctl --set previews delete all

Screenshots

Hacer una captuta de pantalla del simulator encendido

xcrun simctl io booted screenshot [filename].[extension]

Vídeo

Crear un branch local y subirlo a remoto

git branch NEW-BRANCH-NAME
git push -u origin <branch>

Renombrar un branch local

git branch -m nuevo_nombre
#!/bin/zsh
# The right time
xcrun simctl status_bar booted override --time 09:41
# WiFi & Cellular network
xcrun simctl status_bar booted override --dataNetwork wifi
xcrun simctl status_bar booted override --wifiBars 3
xcrun simctl status_bar booted override --cellularBars 4
# 100% battery level
xcrun simctl status_bar booted override --batteryLevel 100
@fchollet
fchollet / classifier_from_little_data_script_1.py
Last active July 27, 2024 19:40
Updated to the Keras 2.0 API.
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats
@shivshank
shivshank / vox_to_obj_exporter.py
Last active June 14, 2024 21:59
Exports from MagicaVoxel VOX to OBJ. Can preserve all edges for easy editing in a program like Blender.
"""
This script is designed to export a mass amount of MagicaVoxel .vox files
to .obj. Unlike Magica's internal exporter, this exporter preserves the
voxel vertices for easy manipulating in a 3d modeling program like Blender.
Various meshing algorithms are included (or to be included). MagicaVoxel
uses monotone triangulation (I think). The algorithms that will (or do)
appear in this script will use methods to potentially reduce rendering
artifacts that could be introduced by triangulation of this nature.