This file contains hidden or 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
mod view { | |
use std::marker::PhantomData; | |
pub struct Color; | |
pub trait WithFgColor { | |
fn set_fg_color(&mut self, color: Color); | |
fn fg_color(&self) -> &Color; | |
} |
This file contains hidden or 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
{ | |
services.xserver.displayManager = { | |
sessionPackages = [ | |
( | |
let sessionName = "Hyprland"; in pkgs.writeTextFile | |
{ | |
name = sessionName; | |
destination = "/share/wayland-sessions/${sessionName}.desktop"; | |
text = '' | |
[Desktop Entry] |
This file contains hidden or 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 <cmath> | |
#include <glm/glm.hpp> | |
inline void findMinMax(float x0, float x1, float x2, float &min, float &max) { | |
min = max = x0; | |
if (x1 < min) | |
min = x1; | |
if (x1 > max) | |
max = x1; | |
if (x2 < min) |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>vue inheritance</title> | |
</head> | |
<body> | |
<my-student></my-student> | |
<my-student first-name="Franz" last-name="Meier" :student-id="54321"></my-student> | |
<my-professor first-name="Jared" last-name="Josey"></my-professor> |