Skip to content

Instantly share code, notes, and snippets.

Avatar
:electron:
Am Heimcomputer sitz' ich hier, und programmier' die Zukunft mir

Raffael Zica SirJson

:electron:
Am Heimcomputer sitz' ich hier, und programmier' die Zukunft mir
View GitHub Profile
@giuliomagnifico
giuliomagnifico / padd.sh
Last active Mar 12, 2022
Custom PADD layout for 800x480px displays
View padd.sh
#!/usr/bin/env bash
# shellcheck disable=SC2034
# shellcheck disable=SC1091
# shellcheck disable=SC2154
# PADD
#
# A more advanced version of the chronometer provided with Pihole
# SETS LOCALE
@bjesus
bjesus / config.json
Last active Apr 26, 2022
Weather widget for waybar
View config.json
"custom/weather": {
"format": "{}",
"tooltip": true,
"interval": 3600,
"exec": "waybar-wttr.py",
"return-type": "json"
},
@davialexandre
davialexandre / gruvbox_dark.json
Created Jun 23, 2019
Gruvbox Dark color scheme for the new Windows Terminal
View gruvbox_dark.json
{
"background" : "#282828",
"black" : "#282828",
"blue" : "#458588",
"brightBlack" : "#928374",
"brightBlue" : "#83A598",
"brightCyan" : "#8EC07C",
"brightGreen" : "#B8BB26",
"brightPurple" : "#D3869B",
"brightRed" : "#FB4934",
@ariok
ariok / AAIControllerTeam.cpp
Last active Apr 15, 2022
UE4 Perception AI System: Detect By Affiliation
View AAIControllerTeam.cpp
#include "AIControllerTeam.h"
// A Tutorial for this code is available here:
// https://www.thinkandbuild.it/ue4-ai-perception-system/
AAIControllerTeam::AAIControllerTeam()
{
SetGenericTeamId(FGenericTeamId(5));
}
View 0001-Use-eglGetPlatformDisplay-when-possible.patch
From 93a400edcabee9de0d6b464e081aa9c562085559 Mon Sep 17 00:00:00 2001
From: Myy Miouyouyou <myy@miouyouyou.fr>
Date: Fri, 1 Feb 2019 17:13:57 +0000
Subject: [PATCH] Use eglGetPlatformDisplay when possible
And then fallback on eglGetDisplay if the initialization fails...
That said, currently the code only handle eglGetPlatformDisplay
with GBMm in order to initialize displays with DRM/KMS backends.
Signed-off-by: Myy Miouyouyou <myy@miouyouyou.fr>
@danmikita
danmikita / init.vim
Created Nov 16, 2018
File preview with FZF, RG, Bat, and Devicons
View init.vim
nnoremap <silent> <leader>e :call Fzf_dev()<CR>
" ripgrep
if executable('rg')
let $FZF_DEFAULT_COMMAND = 'rg --files --hidden --follow --glob "!.git/*"'
set grepprg=rg\ --vimgrep
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>).'| tr -d "\017"', 1, <bang>0)
endif
" Files + devicons
View IPromiseCallbackHandler.cs
public interface IPromiseCallbackHandler
{
void SetResult(string json);
void SetError(string error);
}
@vi
vi / miostdin.rs
Created Oct 9, 2017
Simple copy stdin to stdout example using Rust mio
View miostdin.rs
extern crate mio;
use mio::unix::EventedFd;
use std::fs::File;
use mio::{Token, PollOpt, Ready, Poll, Events};
//use mio_uds::UnixStream;
use std::os::unix::io::{FromRawFd};
use std::io::{Read, Write};
@chinmaygarde
chinmaygarde / FlutterEmbedderGLFW.cc
Last active Mar 25, 2022
Flutter Embedder API Example (GLFW with OpenGL)
View FlutterEmbedderGLFW.cc
#include <assert.h>
#include <chrono>
#include <embedder.h>
#include <glfw3.h>
#include <iostream>
static_assert(FLUTTER_ENGINE_VERSION == 1, "");
static const size_t kInitialWindowWidth = 800;