Skip to content

Instantly share code, notes, and snippets.

View shackra's full-sized avatar

Jorge Araya Navarro shackra

View GitHub Profile
@shackra
shackra / shell.nix
Last active March 2, 2024 23:22
shell.nix for Python development
let
nixpkgs-src = builtins.fetchTarball {
# 23.05
url = "https://github.com/NixOS/nixpkgs/archive/nixos-23.11.tar.gz";
};
pkgs = import nixpkgs-src {
config = {
# allowUnfree may be necessary for some packages, but in general you should not need it.
allowUnfree = false;
@shackra
shackra / flake.nix
Created February 27, 2024 13:49
Integrate flake.nix into your Godot Engine projects, with pre-commit-hooks!
# This flake was initially generated by fh, the CLI for FlakeHub (version 0.1.9)
{
# A helpful description of your flake
description = "Editor depedencies for development";
# Flake inputs
inputs = {
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
flake-schemas.url =
"https://flakehub.com/f/DeterminateSystems/flake-schemas/*.tar.gz";
@shackra
shackra / genres.json
Created April 21, 2018 01:58
Video game genres
{
"__comment": "Took from http://tvtropes.org/pmwiki/pmwiki.php/Main/VideogameGenres you need to do the grouping in your script to combine the incompatible genres!",
"genres":
{
"Action-Adventure": "A game that combines parts from Adventure Games and Action Games together.",
"Metroidvania": "A game that combines parts from Adventure Action Games and Platform Games together. Features emphasis on exploring an interconnected environment and obtaining skills necessary to reach new areas of said environment.",
"Stealth-Based Game": "A game in which the player character must hide and sneak through the level while avoiding notice from much more powerful enemies that the player character cannot take head-on.",
"Survival Sandbox": "A game where the primary objective is to survive for as long as possible in a hostile environment. Also known as Survival Game.",
"Survival Horror": "A game that features overwhelmed protagonist(s), oppressive atmosphere based on Horror conventions and a need for c
Verifying that I control the following Nostr public key: npub149050rmfuher7u6wkssq5mvsagappqxnumheupe4mevgmp3aaw9s3f538q
@shackra
shackra / shell.nix
Created October 27, 2023 03:46
Flake for compiling Rust crates with dependencies on clang
let
nixpkgs-src = builtins.fetchTarball {
# 23.05
url = "https://github.com/NixOS/nixpkgs/archive/nixos-23.05.tar.gz";
};
pkgs = import nixpkgs-src {
config = {
# allowUnfree may be necessary for some packages, but in general you should not need it.
allowUnfree = false;
@shackra
shackra / Variaciones de Maitines según día de la semana.md
Last active October 18, 2023 02:01
Oficio Parvo de Nuestra Señora por Don Anselmo Ulloa, notas

Se reza el Salmo 94 todos los días del año. El invitatorio se dice como aparece entre los parrafos del Salmo. Se reza el Himno.

Luego, según el día se reza:

Salmo/Lección Domingo Lunes Martes Miércoles Jueves Viernes Sábado
1er Salmo 8 (pag. 16) ϵ 44 (pag. 20) 59 (pag. 25) ϵ ϐ φ
2do Salmo 18 (pag. 17) ϵ 45 (pag. 23) 96 (pag. 26) ϵ ϐ φ
3er Salmo 23 (pag. 19) ϵ 86 (pag. 24) 97 (pag. 28) ϵ ϐ φ
1er Lección Eclo 24, 11-13 (pag. 30) ϵ ϵ ϵ ϵ ϵ ϵ
2da Lección Eclo 24, 15-16 (pag. 31) ϵ ϵ ϵ ϵ ϵ ϵ
@shackra
shackra / ignite
Last active June 15, 2023 04:12
ignite cli docker wrapper for cool and fashion people that uses unsupported OS like NixOS
#!/usr/bin/env bash
set -e
cli_home=$HOME/.cache/ignite
cli_version=v0.27.1
run_serve=false
for arg in "$@"; do
if [ "$arg" = "serve" ]; then
@shackra
shackra / 365 days of Bible Reading, one day per line.csv
Last active October 1, 2022 20:22
New Saint Thomas Institute’s Read the Bible in a Year For Catholics
Day First reading Second reading Third reading
Jan 1 Gn 1-2 Ps 1 Mt 1
Jan 2 Gn 3-4 Ps 2 Mt 2
Jan 3 Gn 5-6 Ps 3 Mt 3
Jan 4 Gn 7-8 Ps 4 Mt 4
Jan 5 Gn 9-10 Ps 5 Mt 5:1-26
Jan 6 Gn 11-12 Ps 6 Mt 5:27-48
Jan 7 Gn 13-14 Ps 7 Mt 6:1-18
Jan 8 Gn 15-16 Ps 8 Mt 6:19-34
Jan 9 Gn 17-18 Ps 9 Mt 7

Keybase proof

I hereby claim:

  • I am shackra on github.
  • I am shackra (https://keybase.io/shackra) on keybase.
  • I have a public key ASDMQ4SMYzcAd9M1OxvZiDIuf_dJQLFPSiIB73lhtgD7Xwo

To claim this, I am signing this object:

@shackra
shackra / GpsUtils.cs
Created February 4, 2018 02:17 — forked from govert/GpsUtils.cs
Convert WGS-84 geodetic locations (GPS readings) to Cartesian coordinates in a local tangent plane (Geodetic to ECEF to ENU)
using System;
using System.Diagnostics;
// Some helpers for converting GPS readings from the WGS84 geodetic system to a local North-East-Up cartesian axis.
// The implementation here is according to the paper:
// "Conversion of Geodetic coordinates to the Local Tangent Plane" Version 2.01.
// "The basic reference for this paper is J.Farrell & M.Barth 'The Global Positioning System & Inertial Navigation'"
// Also helpful is Wikipedia: http://en.wikipedia.org/wiki/Geodetic_datum
public class GpsUtils