Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdint.h>
#include QMK_KEYBOARD_H
#include "quantum.h"
#include "adafruit_ble.h"
#include "git_macros.h"
#include "secrets.h"
#include "config.h"
#ifndef SAFE_RANGE_USER
#include <stdio.h>
#include <stdint.h>
#include QMK_KEYBOARD_H
#include "quantum.h"
#include "adafruit_ble.h"
#include "git_macros.h"
#include "secrets.h"
#include "config.h"
#include "keymap_steno.h"
#ifndef SAFE_RANGE_USER
#define SAFE_RANGE_USER SAFE_RANGE
#endif
enum git_keycodes {
GIT_PULL = SAFE_RANGE_USER,
GIT_CHECKOUT_MASTER,
GIT_CHECKOUT_B,
GIT_PULL_REBASE_MASTER,
GIT_ADD_ALL,
enum custom_keycodes {
LAUGH = SAFE_RANGE
};
static uint16_t random_value = 157;
const uint16_t random_chars[9] = {
KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#include QMK_KEYBOARD_H
enum custom_keycoodes {
GIT_PULL = SAFE_RANGE,
GIT_CHECKOUT_MASTER,
GIT_CHECKOUT_B,
GIT_PULL_REBASE_MASTER,
GIT_ADD_ALL,
GIT_COMMIT,
GIT_AMEND,
uint16_t last_keycode = _______;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case KC_COMM:
if (last_keycode == KC_DOT) {
if (record -> event.pressed) {
register_code(KC_SLSH);
} else {
unregister_code(KC_SLSH);
}
#include QMK_KEYBOARD_H
#define _______ KC_TRNS
#define XXXXXXX KC_NO
#define SHF_A LSFT_T(KC_A)
#define SHF_ENT LSFT_T(KC_ENT)
#define L_1_SPC LT(1, KC_SPC)
#define L_2_SPC LT(2, KC_SPC)
#define L_3_Z LT(3,KC_Z)
@burakcan
burakcan / cloudSettings
Last active September 5, 2019 13:45
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-09-05T13:44:53.326Z","extensionVersion":"v3.4.2"}
static uint8_t old_layer = 255;
void matrix_scan_user(void) {
#ifdef RGBLIGHT_ENABLE
uint8_t new_layer = biton32(layer_state);
if (old_layer != new_layer) {
switch (new_layer) {
case _QWERTY:
rgblight_mode(13);
@burakcan
burakcan / whatsapp_phone_enumerator_floated_div.js
Created May 12, 2017 12:47
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses (floated div)
/*
PoC WhatsApp enumeration of phonenumbers, profile pics, about texts and online statuses
Floated div edition
01-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
This script creates a UI on top of the WhatsApp Web interface. It enumerates certain kinds
of information from a range of phonenumbers. It doesn't matter if these numbers are part
of your contact list. At the end a table is displayed containing phonenumbers, profile pics,
about texts and online statuses. The online statuses are being updated every