Skip to content

Instantly share code, notes, and snippets.

View shiryel's full-sized avatar
🙀
> Insert another bug joke here <

Shiryel shiryel

🙀
> Insert another bug joke here <
  • SP, Brazil
View GitHub Profile
@shiryel
shiryel / flake.nix
Last active May 28, 2023 17:40
NixOS Flake: Flutter with Android Emulator
{
description = "Android Emulator";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils/v1.0.0";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
@shiryel
shiryel / elixir_avro.exs
Created May 19, 2023 22:55
Using Avro on Elixir
###########
# MIX.EXS #
###########
[ {:avro_ex, "~> 2.0"} ]
###########
# CONTEXT #
###########
{
description = "Android Emulator";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils/v1.0.0";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:

Where:

  • r = reference
  • n = number
  • i = integer
  • c = compound_notes, note can be midi number, rest _, or compound note such as _60
  • s = symbol

Signals

imp frequency:n - impulse signal, it can be used as a trigger to a sampler or sawsynth
constsig n

@shiryel
shiryel / nix_cross_custom_stdenv.nix
Created August 22, 2024 00:55
How to cross-compile with a custom stdenv on Nix
{
outputs = { nixpkgs, ... }: {
pkgsWeb = import nixpkgs {
system = "x86_64-linux";
# NOTE: enabling setting crossSystem disables config.replaceStdenv
crossSystem = {
config = "wasm32-unknown-none";
rust.rustcTarget = "wasm32-unknown-unknown";
useLLVM = true;
};