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
{ | |
"Components@@tab-autohide": true, | |
"Components@@status-bar-autohide": true, | |
"Components@@Ribbon-autohide": true, | |
"Components@@nav-header-autohide": true, | |
"Components@@tab-title-bar-autohide": true, | |
"Components@@vault-profile-autohide": true, | |
"Appearance-dark@@card-layout-open-dark": true, | |
"Appearance-dark@@theme-dark-style-select": "theme-dark-background-default", | |
"Appearance-dark@@card-highlight-dark": true, |
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
################################################## | |
### Skandal/POET - Windows post-install script ### | |
################################################## | |
#Requires -RunAsAdministrator | |
param ( | |
[Parameter(Mandatory = $false)] [switch]$skip_password = $false, | |
[Parameter(Mandatory = $false)] [switch]$skip_visuals = $false, |
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
Get-ChildItem . -Directory | % { Write-Host "`n[!] $($_.FullName)`n$("-"*40)"; Get-ChildItem $_ -Directory | % { Write-Host "$(Test-Path "$($_.FullName)\.git") : $($_.BaseName)" } }; Write-Host "" |
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
// Global | |
ivec3 gi_id = ivec3(gl_GlobalInvocationID); | |
// Group | |
ivec3 wg_id = ivec3(gl_WorkGroupID); | |
ivec3 wg_size = ivec3(gl_NumWorkGroups); | |
int wg_index = (wg_id.z * wg_size.x * wg_size.y) + (wg_id.y * wg_size.x) + wg_id.x; | |
// Local | |
ivec3 li_id = ivec3(gl_LocalInvocationID); |
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
struct NanoCamera | |
{ | |
float rotx = 0.f; | |
float roty = 0.f; | |
float zoom = 0.f; | |
float fovy = 75.f; | |
glm::mat4 view = glm::identity<glm::mat4>(); | |
glm::mat4 proj = glm::identity<glm::mat4>(); |
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 <stdio.h> | |
#include <stdlib.h> | |
typedef struct { | |
int *array; | |
size_t size; | |
size_t capacity; | |
} darray; | |
void *safe_malloc(size_t size) { |
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
function winget_is { | |
param ($inName) | |
$lines = winget search $inName | |
# Gather indices | |
$nameIdx = 0 | |
$nameLen = -1 | |
$idIdx = -1 | |
$idLen = -1 | |
$verIdx = -1 |
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
# install cwebp from: https://developers.google.com/speed/webp/docs/precompiled, and add it to $env:PATH | |
# 1- Conver png to web | |
(Get-ChildItem . -Recurse -File) | ForEach-Object { $src = "$($_.DirectoryName)\$($_.Name)"; if ($src.EndsWith(".png")) { $dst = $src.Replace(".png", ".webp"); cwebp -q 60 -o $dst $_; } } | |
# 2- Cleanup converted png files | |
(Get-ChildItem . -Recurse -File) | ForEach-Object { $src = "$($_.DirectoryName)\$($_.Name)"; if ($src.EndsWith(".png")) { Remove-Item $_ } } |
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
format = """ | |
$time\ | |
[ · ](fg:#FFF)\ | |
$directory\ | |
$git_branch $git_status\ | |
$docker_context\ | |
$cmd_duration\ | |
[ · ](fg:#FFF)\ | |
$character\ | |
""" |
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
// Check playground in: https://www.mycompiler.io/view/7pXriajivQt | |
#include <iostream> | |
#include <memory> | |
#include <functional> | |
//--- CONCAT ---------------------------------------------- | |
#define detail_CONCAT(a, b) a##b | |
#define CONCAT(a, b) detail_CONCAT(a, b) |
NewerOlder