Skip to content

Instantly share code, notes, and snippets.

View Ph0enixKM's full-sized avatar
🌅
Light is my strength

Phoenix Himself Ph0enixKM

🌅
Light is my strength
View GitHub Profile
@Ph0enixKM
Ph0enixKM / Zed Darker One Dark.md
Last active February 12, 2024 11:17
🌚 Zed Darker One Dark Theme Override

What is this?

This is a theme override for Zed the IDE. This theme is a much darker version of the classic One Dark theme that is installed by default.

How to install the Theme

  1. Press + , to open Settings
  2. Paste just the portion of the settings.json without outer opening and closing brackets
  3. Remove duplicate fields if necessary
  4. Enjoy 🎉
@Ph0enixKM
Ph0enixKM / dark_orange.xml
Created September 4, 2019 16:03
Blender Orange Dark Theme
<bpy>
<Theme>
<user_interface>
<ThemeUserInterface
menu_shadow_fac="0.269286"
menu_shadow_width="9"
icon_alpha="1"
icon_saturation="0.5"
widget_emboss="#00000005"
editor_outline="#191919"
@Ph0enixKM
Ph0enixKM / color.cpp
Last active July 8, 2023 11:33
Cross Platform Terminal Color Output Library (Windows/Linux/Mac)
// Color Terminal Output Library
// MIT Licensed Library
// There are 6 colors:
//
// blue
// green
// cyan
// red
import math
file = open("okregi.txt")
okregi = file.readlines()
stats = [""]
q = []
for line in okregi:
@Ph0enixKM
Ph0enixKM / numbers.py
Created February 7, 2019 19:19
Counts number factors in a file where numbers are separated with ('\n')s
file = open("liczby.txt")
liczby = [int(i) for i in file.readlines()]
czynniki = [[]]
def pierwsza(liczba):
counts = 0
for i in range(1, liczba):
if (liczba % i == 0):
counts += 1
if (counts > 3):
length = float(input("Insert length of a segment: "))
acc = int(input("Insert accuracy: "))
smallest = float("0." + "0" * acc + "1")
a = length
b = smallest
while round(a / b, acc) != round((a + b) / a, acc):
a -= smallest
@Ph0enixKM
Ph0enixKM / README.md
Last active September 23, 2018 12:01
PHX utils

Utilities

@Ph0enixKM
Ph0enixKM / Some Rusty Invalid Enum
Created January 16, 2018 18:06
Rusty Invalid Enum
fn main() {
#![allow(unused_variables)]
#[derive(Debug)]
enum Message {
Quit,
Write(String),
}
impl Message {
@Ph0enixKM
Ph0enixKM / Some Rusty Invalid Enum
Created January 16, 2018 18:06
Rusty Invalid Enum
fn main() {
#![allow(unused_variables)]
#[derive(Debug)]
enum Message {
Quit,
Write(String),
}
impl Message {
.ml-0{margin-left:0rem}.mr-0{margin-right:0rem}.mt-0{margin-top:0rem}.mb-0{margin-bottom:0rem}.mx-0{margin-left:0rem;margin-right:0rem}.my-0{margin-top:0rem;margin-bottom:0rem}.m-0{margin:0rem}.ml-1{margin-left:.5rem}.mr-1{margin-right:.5rem}.mt-1{margin-top:.5rem}.mb-1{margin-bottom:.5rem}.mx-1{margin-left:.5rem;margin-right:.5rem}.my-1{margin-top:.5rem;margin-bottom:.5rem}.m-1{margin:.5rem}.ml-2{margin-left:1rem}.mr-2{margin-right:1rem}.mt-2{margin-top:1rem}.mb-2{margin-bottom:1rem}.mx-2{margin-left:1rem;margin-right:1rem}.my-2{margin-top:1rem;margin-bottom:1rem}.m-2{margin:1rem}.ml-3{margin-left:1.5rem}.mr-3{margin-right:1.5rem}.mt-3{margin-top:1.5rem}.mb-3{margin-bottom:1.5rem}.mx-3{margin-left:1.5rem;margin-right:1.5rem}.my-3{margin-top:1.5rem;margin-bottom:1.5rem}.m-3{margin:1.5rem}.ml-4{margin-left:2rem}.mr-4{margin-right:2rem}.mt-4{margin-top:2rem}.mb-4{margin-bottom:2rem}.mx-4{margin-left:2rem;margin-right:2rem}.my-4{margin-top:2rem;margin-bottom:2rem}.m-4{margin:2rem}.ml-5{margin-left:2.5rem}.mr-5{m