Skip to content

Instantly share code, notes, and snippets.

@DanielGGordon
DanielGGordon / gordon.c
Last active May 22, 2023 02:49
Daniel Gordon's QMK Userspace code including secret file
#ifndef GORDON
#define GORDON
const char secret[][64] = {
"xxxxxxxxxxx",
"ttttttttttt",
"test3",
"test4",
"test5"
};
@DanielGGordon
DanielGGordon / updateScalaVersion.sh
Last active January 20, 2023 14:55
Update Scala Version to Some Version on Debian/Ubuntu/Mint Linux Distrubtions via CLI
# Author: Daniel Gordon
# License: MIT
# Created: 10/28/2016
#
# Mini Script for Updating Scala to some Scala version
# Does not update SBT. Just Scala.
# See <http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Linux.html> for upgrading SBT
# This is for Debian/Mint/Ubuntu distributions only
#
# TO USE AS A SCRIPT:
@DanielGGordon
DanielGGordon / output.csv
Created June 17, 2019 21:06
KLE converted output
F4CDD4 R3 1u 40
592254 R3 2u 2
592254 R3 1u 18
[
{
"name": "Planck DSA Budapest Purple/Pink"
},
[
{
"c": "#F4CDD4",
"p": "DSA",
"a": 7
},
@DanielGGordon
DanielGGordon / keymap.c
Created September 18, 2017 16:46
my current keymap for my ergodox, using QMK
#include QMK_KEYBOARD_H
#include "debug.h"
#include "action_layer.h"
#include "version.h"
#include "keymap_german.h"
#include "keymap_nordic.h"
@DanielGGordon
DanielGGordon / disk.c
Last active March 2, 2016 17:43
Write to a single file in parallel
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#include<fcntl.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<errno.h>
struct thread_data {
public class FizzBuzz {
public static void main (String args[]) {
fizzBuzz(100);
}
public static void fizzBuzz (final int n) {
for(int i = 1; i <= n; i++) {
if (((i % 5) == 0) && ((i % 3) == 0)) {