Skip to content

Instantly share code, notes, and snippets.

View Whimfoome's full-sized avatar

Dimitar Dimitrov Whimfoome

View GitHub Profile
@Whimfoome
Whimfoome / print_flush.rs
Last active March 29, 2023 13:22
Rust Helpers
fn print(buffer: &str) {
use std::io::Write;
print!("{}", buffer);
std::io::stdout().flush().unwrap();
}
@Whimfoome
Whimfoome / learn.cpp
Created September 25, 2022 16:50
Learn C++ in Y Minutes
// https://learnxinyminutes.com/docs/c++/
//////////////////
// Comparison to C
//////////////////
// C++ is _almost_ a superset of C and shares its basic syntax for
// variable declarations, primitive types, and functions.
// Just like in C, your program's entry point is a function called
// main with an integer return type.
@Whimfoome
Whimfoome / sveltekit-github-pages.md
Created August 16, 2022 11:52
Deploy SvelteKit project to GitHub Pages

Prerequsites

  • You already have a project
  • You uploaded the source code to github

Make your website static

To deploy your SvelteKit project, you need an adapter, Github Pages hosts static websites, so we will use adapter-static, to install it, run:

npm install @sveltejs/adapter-static@next --save-dev
@Whimfoome
Whimfoome / archsetup.md
Last active August 13, 2022 20:40
Arch Setup (EndevourOS)

Install Arch with EndevourOS, Gnome Environment, btrfs filesystem

Do most of the things in the eos-welcome app

Common Pacman Commands

  • pacman -Syu (<pkg>) - update && upgrade /pkg optional
  • pacman -S <pkg> - install
  • pacman -Rsc <pkg> - uninstall
  • pacman -Ss <keywords> - search
  • pacman -Qe - list installed pkgs by you