Skip to content

Instantly share code, notes, and snippets.

@syrm
syrm / bepo5.c
Last active November 1, 2020 14:41
#include QMK_KEYBOARD_H
#include "version.h"
#include "keymap_bepo.h"
#define BEPO 0
#define L1 1
#define L2 2
#define L3 3
#define GAMING 4
@syrm
syrm / love.php
Last active March 14, 2021 13:00
Love compatibility test
<?php
/**
* Made in 2000 on a TI-92
* Executed again lots of years after for fun (in 2019) with a result of 99% compatibility with my wife.
* So i decided to retranscript it on PHP.
*/
class Person
{
@syrm
syrm / bepo4.txt
Created September 1, 2019 16:41
Bepo
/** BEPO
* ,--------------------------------------------------. ,--------------------------------------------------.
* | $ | " | « | » | ( | ) | | | | @ | + | - | / | * | = |
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
* | | B | É | P | O | È | Caps | | | ^ | V | D | L | J | Z |
* |--------+------+------+------+------+------| Lock | | |------+------+------+------+------+--------|
* | Ç | A | U | I | E | , |------| |------| C | T | S | R | N | M |
* |--------+------+------+------+------+------| Esc | | Tab |------+------+------+------+------+--------|
* | Ê | À | Y | X | . | K | | | | ' | Q | G | H | F | W |
* `--------+
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# Use font : https://github.com/gabrielelana/awesome-terminal-fonts
#
# In addition, I recommend the
interface Day {
fun part1(input: String) = part1(listOf(input))
fun part2(input: String) = part2(listOf(input))
fun part1(input: List<String>): String
fun part2(input: List<String>): String
fun solve(inputPart1: String, inputPart2: String): List<String, String> {
return List<String, String>(
<?php
trait setterGetter
{
private function resolveVariable()
{
$method = debug_backtrace()[1]['function'];
$variable = strtolower(substr($method, 3));
if ($variable === '') {
@syrm
syrm / keybase.md
Last active December 1, 2018 22:00

Keybase proof

I hereby claim:

  • I am syrm on github.
  • I am s17n (https://keybase.io/s17n) on keybase.
  • I have a public key whose fingerprint is 70B9 6776 F01E 5C1F 49B8 9A47 6C98 9464 3A9C BA69

To claim this, I am signing this object:

package Bouh
import java.util.concurrent.TimeUnit
class TapTempo
{
private val sample = 5
private val resetTime = TimeUnit.NANOSECONDS.convert(5, TimeUnit.SECONDS)
private val taps = ArrayList<Long>()
class TapTempo
{
Int sample := 5
Duration[] taps := Duration[,]
Duration resetTime := 60sec
Int precision := 2
public Void main()
{
while (true) {
<?php
require_once realpath(
dirname($_SERVER['SCRIPT_FILENAME'])
. DIRECTORY_SEPARATOR
. str_repeat(
'..' . DIRECTORY_SEPARATOR,
substr_count(
preg_replace('#^./#', '', $_SERVER['SCRIPT_FILENAME']),
DIRECTORY_SEPARATOR