Skip to content

Instantly share code, notes, and snippets.

View Glamhoth's full-sized avatar
🤔
Rust...?

Filip Demski (Glamhoth) Glamhoth

🤔
Rust...?
View GitHub Profile
sudo pacman -Rdd nvidia nvidia-utils
sudo yay -S nvidia-beta
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
IgnorePkg = rofi
Dokumenty/Witcher 2/Config/User.ini
[Rendering]
AllowAntialias=1
AllowBloom=1
AllowBlur=0
AllowCutsceneDOF=0
AllowDOF=0
AllowDecals=1.0
AllowMotionBlur=0
#!/usr/bin/env python3
import os
import sys
import wget
import multiprocessing as mp
from contextlib import redirect_stdout
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from urllib import request
#include <iostream>
template <typename T>
constexpr T
max(const T& a, const T& b)
{
return (a > b) ? a : b;
}
template <typename FIND, typename T, typename... Ts>

Keybase proof

I hereby claim:

  • I am glamhoth on github.
  • I am glamhoth (https://keybase.io/glamhoth) on keybase.
  • I have a public key whose fingerprint is 9752 0EDD F781 7633 AEEE D803 6829 C327 1AC9 ACD7

To claim this, I am signing this object:

QString test("łabądź");
std::transform(test.begin(), test.end(), test.begin(), [&](QChar c)
{
if(c == QChar(L'ł'))
return QChar('l');
// ...
else
return c;
});
#include <algorithm>
#include <codecvt>
#include <iostream>
#include <locale>
#include <wchar.h>
int main()
{
std::wstring test = L"łabądź";
let mut cpu = CPU::new(|addr: usize| memory.read_value(addr) );
=============
impl<'a> CPU<'a>
{
pub fn new<F>(read_memory: F) -> Self
where F: Fn<(usize), Output=u8> + 'a,
{
...
@Glamhoth
Glamhoth / specular.cc
Created January 6, 2019 15:25
Specular power bug
double specularCoefficientPower = specularColor.b < 0.001 ? 1 : specularColor.b;