Skip to content

Instantly share code, notes, and snippets.

View mnxoid's full-sized avatar

Mykhaylo Dudyak mnxoid

View GitHub Profile
@tobert
tobert / LinuxMIDISynth.md
Created November 28, 2017 23:31
MPKmini2 MIDI + fluidsynth CLI only

Akai MPK Mini 2 + Fluidsynth + Linux synthesizer

This is a quick & dirty way to attach an Akai MPK mini 2 USB MIDI controller to Linux so the Linux machine can act as its synthesizer. This approach should work for any modern USB MIDI instrument.

Rationale

I looked around on the web and, surprisingly, I didn't find any simple options for quickly starting Fluidsynth up and wiring it to a MIDI controller for simple keyboard usage. There are a few out there that involve using Qsynth which is cool but I didn't want a GUI for something relatively simple.

Shell Session

@lsimone
lsimone / egghead courses download
Created October 22, 2017 21:19
Download free egghead.io videos
#!/bin/bash
list=`lynx -source $1 | grep -o -e 'https[^"]*.m3u8' | xargs`
course="${1##*/}"
mkdir $course
echo ">>> $(echo $list | wc -w) video(s) found"
c=1
for video in $list
@Leejjon
Leejjon / texturesInScene2dgame.md
Last active May 11, 2023 21:35
How to organize your stages and textures in your libGDX game

Starting out

If you have started out to build a game with libGDX, you've were probably creating and disposing textures out like this:

public class MyGdxGame extends ApplicationAdapter {
    SpriteBatch batch;
    Texture badlogic;

    @Override

public void create () {

@phatak-dev
phatak-dev / README.md
Last active July 2, 2021 05:03
Functional Programming in C++

#Compilng You need g++ 4.9 to compile this code. Follow these steps to install g++-4.9

After installing run the following command to compile

/usr/bin/g++-4.9 -std=c++11 lambda.cpp

#Running

./a.out
@staltz
staltz / introrx.md
Last active July 19, 2024 22:21
The introduction to Reactive Programming you've been missing
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.widget.Toast;
public class MySecretBroadcastReceiver extends BroadcastReceiver {
public static final String DEBUG_KEY = "DEBUG";