This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Copyright (c) 2022 Rafael Romão | |
* SPDX-License-Identifier: MIT | |
* | |
*/ | |
/ { | |
#define C_CEDIL (LA(ZMK_HID_USAGE(HID_USAGE_KEY, HID_USAGE_KEY_KEYBOARD_C))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const options: Options = { | |
wallThickness: 4, | |
wallShrouding: 0, | |
webThickness: 0, | |
webMinThicknessFactor: 1, | |
screwIndices: [3, 10, 15, 16], | |
screwType: "screw insert", | |
screwSize: "M3", | |
screwCountersink: false, | |
rounded: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |
switch (keycode) { | |
case LT(1, KC_N): | |
// Intercept hold function to hold down CTRL on new layer | |
if (!record->tap.count) { | |
if (record->event.pressed) { | |
register_mods(MOD_LCTL); | |
} else { | |
unregister_mods(MOD_LCTL); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include QMK_KEYBOARD_H | |
#include "definitions/keycodes.h" | |
#include "definitions/process_record.h" | |
#define SEC_1 KC_R | |
#define SEC_2 KC_Q | |
#define SEC_3 KC_P | |
#define SEC_4 KC_Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Secret stuff, should not be commited to the repo | |
*/ | |
#include QMK_KEYBOARD_H | |
#include "secret.h" | |
// Combos | |
process_record_result_t process_secrets(uint16_t keycode, keyrecord_t *record) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.net.URI; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpResponse; | |
import java.util.List; | |
import java.util.concurrent.CompletableFuture; | |
import java.util.stream.Stream; | |
import static java.util.stream.Collectors.toList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
fonts_dir="${HOME}/.local/share/fonts" | |
if [ ! -d "${fonts_dir}" ]; then | |
echo "mkdir -p $fonts_dir" | |
mkdir -p "${fonts_dir}" | |
else | |
echo "Found fonts dir $fonts_dir" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Realiza a busca no Buscapé e trata os resultados | |
private async Task ExecuteSearchAsync(string uri, CancellationToken cancellationToken) | |
{ | |
using (var request = new HttpRequestMessage(HttpMethod.Get, uri)) | |
{ | |
using (var cancellationTokenSource = new CancellationTokenSource(TimeSpan.FromSeconds(5))) | |
{ | |
var buscapeResponse = await WebClient.SendAsync(request, cancellationTokenSource.Token); | |
if (buscapeResponse.StatusCode != HttpStatusCode.OK) | |
{ |