This file contains 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
#!/usr/bin/env python | |
import os | |
pacman_path = "/var/lib/pacman/local" | |
pkgs = [] | |
class bcolors: | |
HEADER = '\033[95m' | |
OKBLUE = '\033[94m' |
This file contains 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
# NOTE: Game Details setting on Steam must be public | |
# Replace key and steamID values with your own api key (from https://steamcommunity.com/dev/apikey) and Steam ID. | |
from datetime import datetime | |
import requests | |
from bs4 import BeautifulSoup | |
# get currently unlocked achievements | |
key = "0" | |
steamID = 0 | |
appID = 236850 |
This file contains 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::error::Error; | |
use std::fs::{File, read_dir}; | |
use std::io::{BufRead, BufReader}; | |
use std::cmp::Ordering; | |
use std::fmt; | |
#[derive(Eq)] | |
struct Package { | |
name: String, | |
size: usize, |
This file contains 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
const c = @cImport({ | |
@cInclude("xcb/xcb.h"); | |
@cInclude("cairo/cairo-xcb.h"); | |
@cInclude("cairo/cairo.h"); | |
}); | |
const std = @import("std"); | |
pub fn lookup_visual(s: *c.xcb_screen_t, visual: c.xcb_visualid_t) ?*c.xcb_visualtype_t { | |
var d = c.xcb_screen_allowed_depths_iterator(s); | |
while (d.rem != 0) { |
This file contains 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 <xdo.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <time.h> | |
static bool x_axis, y_axis; | |
static const char *up = "Up"; | |
static const char *down = "Down"; | |
static const char *left = "Left"; | |
static const char *right = "Right"; |
This file contains 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
#!/usr/bin/python3 | |
# This program is licensed under GPLv3. | |
from os import path | |
import gi | |
gi.require_version('Gst', '1.0') | |
gi.require_version('Gtk', '3.0') | |
gi.require_version('GdkX11', '3.0') | |
gi.require_version('GstVideo', '1.0') | |
from gi.repository import GObject, Gst, Gtk |