Skip to content

Instantly share code, notes, and snippets.

View AnderRasoVazquez's full-sized avatar
Guess I'll work ¯\_(ツ)_/¯

Ander Raso Vázquez AnderRasoVazquez

Guess I'll work ¯\_(ツ)_/¯
View GitHub Profile
@AnderRasoVazquez
AnderRasoVazquez / gist:23fb972fae470bfdbe61171957e2e391
Created August 22, 2021 01:28
Minecraft mod error toms_storage-1.2.17.jar
---- Minecraft Crash Report ----
// This doesn't make any sense!
Time: 22/8/21 3:24
Description: Mod loading error has occurred
java.lang.Exception: Mod Loading has failed
at net.minecraftforge.fmllegacy.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:69) ~[forge-1.17.1-37.0.42-universal.jar%2357!:?] {re:classloading}
at net.minecraftforge.fmlclient.ClientModLoader.completeModLoading(ClientModLoader.java:183) ~[forge-1.17.1-37.0.42-universal.jar%2357!:?] {re:classloading,pl:runtimedistcleaner:A}
at net.minecraft.client.Minecraft.lambda$new$1(Minecraft.java:556) ~[client-1.17.1-20210706.113038-srg.jar%2353!:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}
@AnderRasoVazquez
AnderRasoVazquez / Program.cs
Created April 21, 2020 20:55
Attach Selenium to an existing instance of Chrome in Windows or Linux
using System;
using OpenQA.Selenium.Chrome;
using System.Diagnostics;
namespace selenium
{
class Program
{
static void Main(string[] args)
{
@AnderRasoVazquez
AnderRasoVazquez / keras_kfold.py
Created November 28, 2018 20:12
[K-fold cross validation with Keras] #python #keras #machine_learning
"""Obtained from https://github.com/keras-team/keras/issues/1711#issuecomment-185801662"""
from sklearn.cross_validation import StratifiedKFold
def load_data():
# load your data using this function
def create model():
# create your model using this function
extends Control
# Settings
var arrow_body_sprites_amount = 15
var scale_change = 0.03
# Nodes
onready var path_2d = $Path2D
onready var arrow_head = $Path2D/Head
@AnderRasoVazquez
AnderRasoVazquez / comands.sh
Last active October 9, 2020 11:36
[Terminal Commands To Initiate Gala Windows And Workspaces Actions in elementary OS] #elementaryos #bash #shell
Open a Terminal and try the next commands :
dbus-send --session --dest=org.pantheon.gala --print-reply /org/pantheon/gala org.pantheon.gala.PerformAction int32:1
Luna : Workspace Overview ( keep Enter pressed ), Freya : Multitasking View
dbus-send --session --dest=org.pantheon.gala --print-reply /org/pantheon/gala org.pantheon.gala.PerformAction int32:2
Terminal maximizes
dbus-send --session --dest=org.pantheon.gala --print-reply /org/pantheon/gala org.pantheon.gala.PerformAction int32:3
Terminal minimizes
@AnderRasoVazquez
AnderRasoVazquez / parser.py
Last active October 3, 2018 14:49 — forked from JSONOrona/parser.py
[How to use Python's argparse module] #python #argparse
#!/usr/bin/python
''' Python command line argument example using argparse module
Example output:
./parser.py --server=pyserver --port=8080,443,25,22,21 --keyword=pyisgood
Server name: [ pyserver ]
@AnderRasoVazquez
AnderRasoVazquez / redbluebuttons.py
Last active March 18, 2021 21:06
[Python Gtk red and blue button] How to use gtk styles to color buttons in GTK #GTK #Python
# blue button
button_equal = Gtk.Button()
button_equal.get_style_context().add_class(Gtk.STYLE_CLASS_SUGGESTED_ACTION)
# red button
button_clear = Gtk.Button()
button_clear.get_style_context().add_class(Gtk.STYLE_CLASS_DESTRUCTIVE_ACTION)
@AnderRasoVazquez
AnderRasoVazquez / gist:9b5c26405f3f268504f3
Last active October 3, 2018 14:53 — forked from sergejx/gist:2358089
[How to set dark theme for a GTK+ application using Python] #python #gtk
from gi.repository import Gtk
settings = Gtk.Settings.get_default()
settings.set_property("gtk-application-prefer-dark-theme", True)
@AnderRasoVazquez
AnderRasoVazquez / weather.py
Last active July 27, 2022 07:50
[Weather script in Python using pywapi] #python #python3 #pywapi
#!/usr/bin/python
'''
[INFORMATION]
script_name=WEATHER
description=consult weather using a weather id
language=english
programming_language=python3
author= Ander Raso Vázquez @ander_raso
@AnderRasoVazquez
AnderRasoVazquez / pomodoro.sh
Last active June 15, 2022 18:37
[A simple pomodoro script for Bash shell] #shell #bash
#!/bin/bash
## pomodoro script by Ander Raso Vázquez [email protected]
############## DOCUMENTATION ###################
## After a pomodoro of 25 min -> 5 min break
## After 4 pomodoros done -> 15 min break
##
## USAGE
## [command] [number of pomodoros]
## example: