This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "monterrelleno-mba17 nix-darwin system flake"; | |
inputs = { | |
ghostty = { | |
url = "github:fightingdreamer/ghostty/v1.1.2-macos-12"; | |
# url = "github:fightingdreamer/ghostty"; | |
}; | |
android-nixpkgs.url = "github:tadfisher/android-nixpkgs"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=4c469132823a44a3e014f18c54a0f0a9 | |
for (row_idx, row) in world.floor.clone().iter().enumerate() { | |
for (col_idx, _value) in row.iter().enumerate() { | |
if world.floor[row_idx][col_idx] == 0_u8 { | |
world.floor[row_idx][col_idx] = 7_u8; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for queues: | |
- queue#pop(0) | |
- queue#pop(-1) // kind of https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at | |
type testing | |
alias_function@ | |
boolean_function? | |
named_function(a: 1, b: 3) or named_function({a:1, b: 3}) | |
fn name { return und } or fnr name { und } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|============================= PODMAN / DOCKER =======================| | |
@see https://unix.stackexchange.com/questions/198590/what-is-a-bind-mount | |
* ls ~ .docker/ | |
* cat $env:USERPROFILE/.docker/config.json | |
* docker search nvidia | |
* docker *image* build -t IMAGE_NAME . *--no-cache* | |
* docker container run --rm -d [-p 8080:8080 ⭕ --publish mode=ingress,published=8080,target=8080] example/hello-node:latest ✨ in the background | |
* ✅ docker ps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\? -> help | |
create database JAMON; -> create DB | alternative: $ createdb JAMOM | |
\l -> list db's | |
drop database JAMON; -> drop DB | |
\q -> exits | |
\c JAMON -> switch over DB | |
\d TABLE? -> describe DB or TABLE | |
create table NAME(\n column TYPE, ...); -> start modeling table | |
SERIAL, TEXT -> column types | |
insert into TABLE(column) values('value'); -> fill the table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:set foldmethod=indent | |
:set foldlevelstart=20 | |
:set enc=utf-8 | |
:set relativenumber | |
:set number | |
:set autoindent | |
:set expandtab | |
:set smarttab | |
:set softtabstop=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select id='country-selection' | |
ng-options="option.name for option in vm.countries track by option.code" | |
ng-model="vm.selectedCountries" | |
material-select | |
multiple | |
name="country_selection" required> | |
<option disabled value="">Select visitor country (max 3)</option> | |
</select> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var jamones = [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jamones = [ | |
{ | |
"id": 3, | |
"title": "serrano", | |
"location": "df", | |
"image": "http://www.hamazing.com/image/cache/data/jamon/serrano/Teruel-Jamon-Serrano-IGP-Organic-Free-Range-712x400.jpg", | |
}, | |
{ | |
"id": 4, | |
"title": "pavo", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdint.h> | |
#define internal static // just internal for the file? -> translation unit | |
#define local_persist static | |
#define global_variable static // automatically initialize to 0 | |
typedef uint8_t uint8; | |
typedef uint16_t uint16; | |
typedef uint32_t uint32; |
NewerOlder