Skip to content

Instantly share code, notes, and snippets.

View ingenieroariel's full-sized avatar

Ariel Núñez ingenieroariel

View GitHub Profile
@ingenieroariel
ingenieroariel / eventtest.fnl
Last active September 9, 2024 15:18
Sample Nix Flake Written in Fennel
(global analogtbl {})
(global digitaltbl {})
(global translatetbl {})
(global statustbl {})
(global touchtbl {})
(global analogdata {})
(set-forcibly! drawline
(fn [text size]
(render-text (.. "\\f," (tostring size) " " text))))
(fn reposition []
{ lib
, stdenv
, fetchFromGitHub
, SDL2
, callPackage
, cmake
#, espeak-ng
, ffmpeg
, file
, freetype
{ config, lib, pkgs, ... }:
let
srcPkgs = import /src {
overlays = [ (
final: prev: {
mesa = pkgs.callPackage ./apple-silicon-support/packages/mesa-asahi-edge {};
arcane = pkgs.callPackage ./apple-silicon-support/packages/arcan {mesa = final.mesa; } ;
m1n1 = pkgs.callPackage ./apple-silicon-support/packages/m1n1 {} ;
firefox = (pkgs.wrapFirefox.override { libpulseaudio = pkgs.libpressureaudio; }) pkgs.firefox-unwrapped { };
}
@ingenieroariel
ingenieroariel / configuration.nix
Created September 4, 2024 16:04
Arcan Asahi Nixos Config
...
@ingenieroariel
ingenieroariel / ic-webpgu.html
Created June 20, 2024 21:59
Interaction Combinators - Claude Sonnet
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Improved Interaction Combinators Visualization</title>
<style>
canvas {
border: 1px solid black;
}
local mouseSpeed = 0.5
local touchSpeed = 0.1
local maxFov = 90
local minFov = 0.01
local maxPitch = 85
local minPitch = -85
local camera = {
vid = nil,
x@ceon:~/c/superconfigure/gui$ cat freetype-2.13.2/superconfigure
#!/usr/bin/env bash
set -e
shopt -s expand_aliases
# Check for COSMO directories
if [ -z ${COSMO+x} ]; then
echo "Could not find COSMO source directory!";
exit 1
fi
@ingenieroariel
ingenieroariel / flake.nix
Created November 3, 2023 16:21
Apple Silicon System NixOS
{
inputs.nixpkgs.url = github:NixOS/nixpkgs;
inputs.apple-silicon = {
url = github:tpwrules/nixos-apple-silicon;
inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, apple-silicon, ... }@attrs: let
system = "aarch64-linux";
@ingenieroariel
ingenieroariel / flake.nix
Created November 3, 2023 16:10
Development Flake with devenv
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/63678e9f3d3afecfeafa0acead6239cdb447574c";
systems.url = "github:nix-systems/default";
devenv.url = "github:cachix/devenv";
};
outputs = { self, nixpkgs, devenv, systems, ... } @ inputs:
let forEachSystem = nixpkgs.lib.genAttrs (import systems); in {
devShells = forEachSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; in {
{ pkgs, ... }:
{
packages = with pkgs; [
git
google-cloud-sdk
(python311.withPackages(ps: with ps; [
pyarrow
duckdb
h3