Skip to content

Instantly share code, notes, and snippets.

@DanielGGordon
DanielGGordon / updateScalaVersion.sh
Last active Sep 17, 2020
Update Scala Version to Some Version on Debian/Ubuntu/Mint Linux Distrubtions via CLI
View updateScalaVersion.sh
# 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 Jun 17, 2019
KLE converted output
View output.csv
F4CDD4 R3 1u 40
592254 R3 2u 2
592254 R3 1u 18
View dsa-pink-purple
[
{
"name": "Planck DSA Budapest Purple/Pink"
},
[
{
"c": "#F4CDD4",
"p": "DSA",
"a": 7
},
@DanielGGordon
DanielGGordon / gordon.c
Last active Dec 13, 2017
Daniel Gordon's QMK Userspace code including secret file
View gordon.c
#ifndef GORDON
#define GORDON
const char secret[][64] = {
"xxxxxxxxxxx",
"ttttttttttt",
"test3",
"test4",
"test5"
};
@DanielGGordon
DanielGGordon / keymap.c
Created Sep 18, 2017
my current keymap for my ergodox, using QMK
View keymap.c
#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 Mar 2, 2016
Write to a single file in parallel
View disk.c
#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 {
View FizzBuzz.java
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)) {
You can’t perform that action at this time.