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
| use regex::Regex; | |
| use std::fs; | |
| use std::path::Path; | |
| fn main() { | |
| let _ = get_battery_path(); | |
| let p = get_battery_percentages(); | |
| let s = get_battery_status(); | |
| println!("{:?}", p); |
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
| #!/bin/bash | |
| # EndeavourOS Package Installer Script | |
| # Created on March 8, 2025 | |
| echo "Starting installation of packages..." | |
| # Update system first | |
| sudo pacman -Syyu |
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
| package utils | |
| import ( | |
| "fmt" | |
| "os" | |
| "strings" | |
| ) | |
| func ReadENV(key string) (value string) { | |
| var result string |
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
| import { MyContext, MyConversation } from "../config/bot.ts"; | |
| import { createConversation } from "https://deno.land/x/grammy_conversations@v1.2.0/conversation.ts"; | |
| import { bot } from "../config/index.ts"; | |
| import { InlineKeyboard } from "../deps.ts"; | |
| const kv = await Deno.openKv() | |
| const ADMIN = "5317740617" | |
| const GROUP = "-4124723873" | |
| async function meme(conversation: MyConversation, ctx: MyContext) { |
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
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "net/http" | |
| ) | |
| func main() { |
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
| Bir qo'lda Qur'onu bittasida jom, | |
| Ba'zida halolmiz, ba'zida harom, | |
| Feruza gumbazli osmon ostida | |
| Na chin musulmonmiz, na kofir tamom. | |
| Men keldimu, dunyo ko'rdimi foyda? | |
| Ketsam martabasi osharmi? Qayda! | |
| Hech kim tushuntirib bera olmadi: | |
| Kelishim - ketishim sababi qayda. |
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
| export default { | |
| "red": "\x1b[31m%s\x1b[0m", | |
| "blue": "\x1b[36m%s\x1b[0m", | |
| "purple":"\x1b[35m%s\x1b[0m", | |
| "green":"\x1b[32m%s\x1b[0m", | |
| "yellow":"\x1b[33m%s\x1b[0m", | |
| } |
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
| use std::{ | |
| env, | |
| fs::{self, File}, | |
| path::Path, | |
| }; | |
| pub fn config() { | |
| let config_path = format!( | |
| "/home/{}/.xonfig/", | |
| env::var("LOGNAME").unwrap_or(".config".to_owned()) |
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
| { | |
| "workbench.colorTheme": "JetBrains Darcula Theme", | |
| "editor.fontFamily": "'jetbrains mono', monospace", | |
| "editor.fontSize": 20, | |
| "window.zoomLevel": 1 | |
| } |
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
| function sums(nums: number[]): {odds: number, evens: number} { | |
| let odds: number = 0 | |
| let evens: number = 0 | |
| for(let num of nums) { | |
| if(num%2==0) evens += num; | |
| else odds += num; | |
| } | |
| return { odds, evens }; |
NewerOlder