Skip to content

Instantly share code, notes, and snippets.

View fkaa's full-sized avatar

Felix Nemo Kaaman fkaa

  • 18:23 (UTC +11:00)
View GitHub Profile
set nocompatible
filetype off
"setup paths for temporary files (backup/swap/undo)
set backupdir-=.
set backupdir+=.
set backupdir-=$HOME/
set backupdir^=$HOME/.vim/tmp/backup//
set backup
" =============================================================================
" File: holy.vim
" Description: Holy vim color scheme
" =============================================================================
set background=light
highlight clear
let colors_name = "holy"
" blue: #0000aa
@fkaa
fkaa / .diff
Created January 12, 2020 17:09
diff --git a/src/main.rs b/src/main.rs
index c4fdd2f..acaaa9d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -185,8 +185,12 @@ impl Application {
}
}
Some("play") => {
+ let playlist = self.playlist.lock().expect("Mutex was not poisoned");
+
16:35:19.938 DEBUG tokio-runtime-worker-2[476] src\main.rs:153 - Sending message to TeamSpeak: Playing 'Yoda Eats Raspberries ASMR While You Suffer'
16:35:19.938 INFO tokio-runtime-worker-2[476] src\audio_player.rs:221 - Setting pipeline state to null
16:35:19.938 INFO tokio-runtime-worker-2[476] src\audio_player.rs:193 - Setting location URI: https://manifest.googlevideo.com/api/manifest/dash/expire/1578774910/ei/Ht0ZXqiKAoeEyQXTna34AQ/ip/46.236.104.25/id/17134f8923ae455b/source/youtube/requiressl/yes/playback_host/r1---sn-5aauxax-0hxe.googlevideo.com/mm/31%2C29/mn/sn-5aauxax-0hxe%2Csn-5goeen7d/ms/au%2Crdu/mv/m/mvi/0/pl/25/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/2172500/vprv/1/mt/1578753225/fvip/6/fexp/23842630%2C23860862/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Chfr%2Cas%2Cvprv%2Citag/sig/ALgxI2wwRgIhAIXetkDXIbHXKmsk8ZIZicw1oEeduKNpUD_CE54NAPz9AiEA7O2esyqbBuL4aQg9qaxDEjyTpKSEhQu7tiPRGociMJ4%3D/lsparams/playback_
@fkaa
fkaa / main.c
Created December 4, 2019 12:21
#include <stdlib.h>
#include <stdio.h>
enum Result
{
CantReadFile,
BadInput,
Success
};
#pragma once
// ----------------------------------------------------------------------------
//
// D3D11 Tokenized Program Format
//
// Copyright (c) Microsoft Corporation.
//
// ----------------------------------------------------------------------------
//
// High Level Goals
C:\dev\test> git clone https://github.com/KhronosGroup/VK-GL-CTS
C:\dev\test> git clone https://github.com/gfx-rs/portability
C:\dev\test> git clone https://android.googlesource.com/platform/external/cherry

C:\dev\test> cargo build --manifest-path=portability\libportability-icd\Cargo.toml --features=dx12
C:\dev\test> cd VK-GL-CTS\external && python fetch_sources.py && cd ..\..\
C:\dev\test> cmake VK-GL-CTS\ -G "Visual Studio 15 2017 Win64" -BVK-GL-CTS\build
C:\dev\test> cmake --build VK-GL-CTS\build --config Release --target deqp-vk
C:\dev\test> cmake --build VK-GL-CTS\build --config Release --target execserver
Running `C:\Dev\test\target\debug\build\test-67b0a7f227aab945\build-script-build`
fxc.exe /nologo /T vs_5_0 /E VS /Fo asset\artifact\triangle_vs.o asset\source\shader\Triangle.hlsl
compilation object save succeeded; see C:\Dev\test\asset\artifact\triangle_vs.o
fxc.exe /nologo /T ps_5_0 /E PS /Fo asset\artifact\triangle_ps.o asset\source\shader\Triangle.hlsl
compilation object save succeeded; see C:\Dev\test\asset\artifact\triangle_ps.o
cargo:rerun-if-changed=asset\source\shader\Triangle.hlsl
cargo:rerun-if-changed=asset\artifact\triangle_vs.o
cargo:rerun-if-changed=asset\source\shader\Triangle.hlsl
cargo:rerun-if-changed=asset\artifact\triangle_ps.o
@rem Script to build LuaJIT with MSVC.
@rem Copyright (C) 2005-2017 Mike Pall. See Copyright Notice in luajit.h
@rem
@rem Either open a "Visual Studio .NET Command Prompt"
@rem (Note that the Express Edition does not contain an x64 compiler)
@rem -or-
@rem Open a "Windows SDK Command Shell" and set the compiler environment:
@rem setenv /release /x86
@rem -or-
@rem setenv /release /x64
use std::io::{BufRead, stdin};
fn main() {
let stdin = stdin();
let mut lines = stdin.lock().lines().collect::<Result<Vec<String>, _>>().unwrap();
lines.sort();
for l in lines { println!("{}", l); }
}