Skip to content

Instantly share code, notes, and snippets.

View Fuhrmann's full-sized avatar
:octocat:
here we go

Ricardo Fuhrmann Fuhrmann

:octocat:
here we go
View GitHub Profile
@Fuhrmann
Fuhrmann / deserialization-example.rs
Last active August 20, 2024 00:33
relm4 examples
fn log_level_deser<'de, D>(deserializer: D) -> Result<LogLevel, D::Error>
where
D: Deserializer<'de>,
{
let s = String::deserialize(deserializer)?;
match s.to_lowercase().as_str() {
"debug" => Ok(LogLevel::Debug),
"info" => Ok(LogLevel::Info),
"warn" => Ok(LogLevel::Warn),
"error" => Ok(LogLevel::Error),
@Fuhrmann
Fuhrmann / keymap.c
Created September 14, 2020 01:03 — forked from reywood/keymap.c
Using only a subset of RGB matrix effects
#include QMK_KEYBOARD_H
uint8_t rgb_matrix_effects[] = {
RGB_MATRIX_NONE,
RGB_MATRIX_SOLID_COLOR,
RGB_MATRIX_BAND_VAL,
RGB_MATRIX_JELLYBEAN_RAINDROPS
};
uint8_t current_rgb_matrix_effect_index = 0;
@Fuhrmann
Fuhrmann / github_gpg_key.md
Created July 8, 2020 02:58 — forked from ankurk91/github_gpg_key.md
Github : Signing commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@Fuhrmann
Fuhrmann / CONFIG.md
Created June 10, 2020 19:39 — forked from rdeavila/CONFIG.md
Apache: Como configurar um VirtualHost com proxy reverso

Apache: Como configurar um VirtualHost com proxy reverso

Instala biblioteca do Apache

sudo apt-get install libapache2-mod-proxy-html

Habilita os módulos no Apache

@Fuhrmann
Fuhrmann / MainActivity.java
Created November 11, 2016 23:30 — forked from Sottti/MainActivity.java
Navigation Drawer Sizing according to Material Design
{...}
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Context;
import android.content.Intent;
import android.graphics.PorterDuff;
import android.os.Bundle;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
<select name="estado_civil" class="form-control" id="inputEstadoCivil">
<option value="0">Solteiro</option>
<option value="1">Casado</option>
<option value="2">Separado</option>
<option value="3">Divorciado</option>
<option value="4">Viúvo</option>
<option value="5">Amasiado</option>
</select>
@Fuhrmann
Fuhrmann / anotacoes.txt
Last active March 28, 2019 00:27
Unity Sheet
--- ## GameObject
Todo objeto no jogo é um GameObject. Esses objetos não fazem nada sozinhos. Necessitam de propriedades. São como caixas vazias que guardam diversos tipos de peças (Components).
--- ## Transform Component
Todo GameObject tem um TransformComponent. O componente mais importante de todos. É através dele que todas as propriedades de transform de um GameObject são ativadas. Define a posição, rotação e tamanho de um GameObject.
--- ## Tags
É uma palavra, identificação, que é utilizada para identificar GameObjects no jogo.
--- ## Scene View
@Fuhrmann
Fuhrmann / test.php
Last active August 29, 2015 14:19 — forked from oanhnn/test.php
<?php
function my_array_diff($a, $b)
{
$map = $out = array();
foreach ($a as $val)
$map[$val] = 1;
foreach ($b as $val)
if (isset($map[$val]))
$map[$val] = 0;