Skip to content

Instantly share code, notes, and snippets.

View atomgomba's full-sized avatar

Károly Kiripolszky atomgomba

View GitHub Profile
float my_sound[][2] = SONG(ONE_UP_SOUND);
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case KC_ENTER:
if (record->event.pressed) {
PLAY_SONG(my_sound);
}
break;
}
@mrsasha
mrsasha / build.gradle
Last active March 21, 2024 10:36
adding Sonarqube reporting for Lint and test coverage to Android Kotlin project (single module)
buildscript {
dependencies {
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6.2"
}
}
@ShawnHymel
ShawnHymel / two_channel_receiver.ino
Created August 24, 2017 15:17
Mixing 2 channels from an RC hobby controller for arcade drive
/**
* Two Channel Receiver
* Author: Shawn Hymel (SparkFun Electronics)
* Date: Aug 24, 2017
*
* Connect a TB6612FNG and RC (PWM) receiver to the Arduino.
* Mixes two channels for arcade drive.
*
* This code is beerware; if you see me (or any other SparkFun
* employee) at the local, and you've found our code helpful,
@jh0ker
jh0ker / mwt.py
Last active February 3, 2023 20:38
Memoize-with-timeout decorator
#!/usr/bin/env python
# Source: http://code.activestate.com/recipes/325905-memoize-decorator-with-timeout/#c1
import time
from functools import wraps
class MWT:
"""Memoize With Timeout"""
_caches = {}
_timeouts = {}
@jjmajava
jjmajava / mininum.txt
Last active April 5, 2024 07:56
Mininum Alpha - Minimal 3x4 pixel font for PuzzleScript
Title Mininum Alpha
Author Jere Majava
========
OBJECTS
========
background _
darkblue
player
@mcleonard
mcleonard / pip_update_all
Last active July 14, 2017 10:11
Update all Python packages
pip list --outdated | grep -Eo '^[^ ]+' | xargs pip install -U
@staltz
staltz / introrx.md
Last active July 22, 2024 09:31
The introduction to Reactive Programming you've been missing
@didip
didip / supervisord-example.conf
Created January 30, 2011 05:10
Example configuration file for supervisord.conf
[unix_http_server]
file=/tmp/supervisor.sock ; path to your socket file
[supervisord]
logfile=/var/log/supervisord/supervisord.log ; supervisord log file
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=error ; info, debug, warn, trace
pidfile=/var/run/supervisord.pid ; pidfile location
nodaemon=false ; run supervisord as a daemon