supercilex / clipboard-history Goto Github PK
View Code? Open in Web Editor NEWRingboard—the clipboard manager for Linux
License: Apache License 2.0
Ringboard—the clipboard manager for Linux
License: Apache License 2.0
No. Use bcachefs and enable compression on the CCH config folder.
Use https://github.com/SoftbearStudios/bitcode and implement streaming support: SoftbearStudios/bitcode#6. Implement the same log structure used for GCH.
Use encoding hints liberally.
Put everything in one bigass crate and commit shitty code. The goal is to get the core functionality 100% working. Develop with a normal cosmic iced app (or just a truly normal iced app if it turns out cosmic apps require the DE to be running).
De-shittify the code, implement the fastest algorithms, cleanup, etc.
Split the core algorithms and data structures into their own crate. There will probably be three crates: core, applet, and app. We can probably call them Gerono because the clipboard is like an hourglass in the sense that all apps will (implicitly) write to it and then any app can get data out. The clipboard is a pinch point.
Final polish, figure out distribution, how to ship, etc.
Stats from my clipboard:
Stats: Stats {
raw: RawStats {
num_entries: 5001,
total_str_bytes: 3701123,
ops: OpCountStats {
num_save_texts: 5130,
num_deletes: 129,
num_favorites: 1,
num_unfavorites: 0,
num_moves: 25,
},
},
computed: ComputedStats {
mean_entry_length: 721.4664717348928,
median_entry_length: 18,
min_entry_length: 1,
max_entry_length: 585304,
},
}
import matplotlib.pyplot as plt
import numpy as np
def generate_histogram(file_path):
# Read data from the file
with open(file_path, 'r') as file:
numbers = [float(line.strip()) for line in file]
# Calculate the minimum and maximum powers of 2
min_power = int(np.floor(np.log2(min(numbers))))
max_power = int(np.ceil(np.log2(max(numbers))))
# Create a histogram with bins as powers of 2
bins = 2 ** np.arange(min_power, max_power + 1)
hist = plt.hist(numbers, bins=bins, color='blue', edgecolor='black')
# Add labels and title
plt.xscale('log', base=2)
plt.xlabel('Value (log base 2)')
plt.ylabel('Frequency')
plt.title('Histogram of entry lengths')
# Modify x-axis labels to show bucket ranges
bin_ranges = [f'2^{int(np.log2(bins[i]))}' for i in range(len(bins))]
plt.xticks(bins, bin_ranges, rotation='vertical')
# Add space at the bottom of the plot
plt.subplots_adjust(bottom=0.15)
# Display the histogram
plt.savefig("stats.png", dpi=300)
file_path = 'tmp.txt'
generate_histogram(file_path)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.