Skip to content

Instantly share code, notes, and snippets.

View Guihgo's full-sized avatar

Guilherme Henrique Guihgo

View GitHub Profile
@t-eckert
t-eckert / flat-ui-v1.json
Last active November 17, 2022 04:09
Flat UI Color Scheme V1 implemented as Windows Terminal color scheme. https://flatuicolors.com/palette/defo
{
"background":"#000000",
"black":"#000000",
"blue":"#2980b9",
"brightBlack":"#7f8c8d",
"brightBlue":"#3498db",
"brightCyan":"#1abc9c",
"brightGreen":"#2ecc71",
"brightPurple":"#9b59b6",
"brightRed":"#e74c3c",
@CelliesProjects
CelliesProjects / structToFile.ino
Last active September 1, 2023 18:04
Read and write a c++ struct to a file. Arduino IDE. ESP32.
/*
* EXAMPLE READING AND WRITING A C++ STRUCT TO A FILE
*/
#include <FS.h>
#include <FFat.h>
const char *fileName = "/somefile.txt";
struct aStruct {
char someString[11];
@rafaelstz
rafaelstz / get.js
Last active October 6, 2023 14:35
AJAX GET and POST with pure Javascript
// Exemplo de requisição GET
var ajax = new XMLHttpRequest();
// Seta tipo de requisição e URL com os parâmetros
ajax.open("GET", "minha-url-api.com/?name=Henry&lastname=Ford", true);
// Envia a requisição
ajax.send();
// Cria um evento para receber o retorno.
@Aracem
Aracem / ParallaxPageTransformer.java
Last active March 8, 2023 17:28
Parallax transformer for ViewPagers that let you set different parallax effects for each view in your Fragments.
package com.aracem.utils.animations.pagetransformation;
import org.jetbrains.annotations.NotNull;
import android.support.v4.view.ViewPager;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
@jpatters
jpatters / HeidiDecode.js
Last active March 20, 2024 14:29
Decodes a password from HeidiSQL. HeidiSQL passwords can be found in the registry. Use File -> Export Settings to dump all settings. Great for if you forget a password.
function heidiDecode(hex) {
var str = '';
var shift = parseInt(hex.substr(-1));
hex = hex.substr(0, hex.length - 1);
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift);
return str;
}
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393'));