Skip to content

Instantly share code, notes, and snippets.

View AOx0's full-sized avatar
:shipit:
School

Alejandro Osornio AOx0

:shipit:
School
View GitHub Profile
@AOx0
AOx0 / TDall.py
Created June 24, 2019 20:36
TDall.py
# -*- coding: utf-8 -*-
###############################################################################
# Esta es una aplicacion que extrae Tools y los almacena en tu carpeta de Python para su uso.
# Corre este script una vez para extraer el programa
# Es OBLIGATORIO tener Pythonista3, por OMZ Software.
# Se extraerán 5 archivos con terminacion .py y 5 archivos con terminación .pyui
# Asegúrate que los nombres de los archivos no existen en tus carpetas.
# Para actualizar el programa borra primero los archivos viejos
# Este script puede ser borrado despues de la extraccion
###############################################################################
@AOx0
AOx0 / TD.py
Created June 24, 2019 21:21
TD.py
# -*- coding: utf-8 -*-
###############################################################################
# Esta es una aplicacion que extrae Tools y los almacena en tu carpeta de Python para su uso.
# Corre este script una vez para extraer el programa
# Es OBLIGATORIO tener Pythonista3, por OMZ Software.
# Se extraerán 5 archivos con terminacion .py y 5 archivos con terminación .pyui
# Asegúrate que los nombres de los archivos no existen en tus carpetas.
# Para actualizar el programa borra primero los archivos viejos
# Este script puede ser borrado despues de la extraccion
###############################################################################
@AOx0
AOx0 / ContentView.swift
Created March 23, 2020 08:46
Proyect Code: ContentView.swift and EOConfig (Environment Object Configuration)
//
// ContentView.swift
//
//
// Created by Alejandro D on 22/03/20.
// Copyright © 2020 Alejandro D. All rights reserved.
//
import SwiftUI
import Combine
Mono path[0] = '/Users/alejandro/Applications/RimWorld.app/Contents/Resources/Data/Managed'
Mono config path = '/Users/alejandro/Applications/RimWorld.app/Contents/MonoBleedingEdge/etc'
Initialize engine version: 2019.2.17f1 (8e603399ca02)
[XR] Discovering subsystems at path /Users/alejandro/Applications/RimWorld.app/Contents/Resources/Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
Initializing Metal device caps: Intel(R) UHD Graphics 617
Begin MonoManager ReloadAssembly
- Completed reload, in 0.168 seconds
UnloadTime: 2.676833 ms
Metal RecreateSurface[0x7f9aa197c560]: surface size 2880x1800
fn main() {
for n in 1..=100 {
println!("{}", get_fizz_buzz(n))
}
}
trait MultiplePush {
fn push_strs(&mut self, strs: &[&str]);
}
This file has been truncated, but you can view the full file.
2150088600465323113033827987821094477819663193627786633457649064518119410030316487373883495234415349173277403190745167355618261933938416179229303768550319979891687670220088032632876874067244550288689828855477093150746366037812049542610739008398751118680184636310930387741226778235599403021768352738855336146598069101102642273054819720219205295410866961563675785626323271176401641955661888792412011645282219390169765499872695725079432326150881508633194294835245090903595434938079717069440921241391011045762352501026902094431809668902133495650650524670862619891889615763987718634118689570919932539715530888675279242645976380101942720447773268828244928849301662594960148693731729276675952286368244296541661609980648639021097263686974394399995808624166168976182210653488671704887961843903820104220772204502608884731681627205580536755200095652743621745143045318848204346067818994560509729434285827717428046022114290286652621511599652832755045989626291483631356793302781553130835017254375862402955218573175942584158521020476515286
@AOx0
AOx0 / get_commits.py
Created August 4, 2021 01:37
Web scraping python script to get a the number of commits of a user
from lxml import html
import requests
elements = list()
date = False
user = 'AOx0'
pagina: requests.Response = requests.get(f'https://github.com/{user}')
tree: html.HtmlElement = html.fromstring(pagina.content)
@AOx0
AOx0 / main.rs
Created September 26, 2021 03:23
Huh?
use std::io::{BufWriter, Write};
use std::process::{Command, Stdio};
use std::path::Path;
fn main() {
let args = std::env::args().skip(1).collect::<Vec<String>>();
if args.len() == 1 && Path::new(&args[0]).exists() {
let path = Path::new(&args[0]);
sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
@AOx0
AOx0 / justfile
Created July 22, 2022 18:35
Zip all folders in dir
zip:
for i in */; do zip -9 -r "${i%/}.zip" "$i" -x ".DS_Store" -x "__MACOSX"; done