5/29/2025, 3:33:41 PM
SELECT product_name, SUM(quantity) AS total_sold FROM sales GROUP BY product_name ORDER BY total_sold DESC LIMIT 10;
5/29/2025, 3:33:32 PM
# TODO List for v1.2 - [x] Add syntax highlighting - [ ] Enable paste expiration dates - [ ] Implement user login system - [x] Improve mobile responsiveness
5/29/2025, 3:33:24 PM
from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
return "Hello, Pastebin!"
if __name__ == '__main__':
app.run(debug=True)5/29/2025, 3:33:04 PM
[ 0.000000] Linux version 5.15.0 (user@server) (gcc version 11.2.0) #1 SMP [ 0.123456] ACPI: Power Resource [FN00] (on) [ 0.345678] pci 0000:00:1f.2: BAR 5: assigned [mem 0xfe700000-0xfe707fff] [ 0.567890] systemd[1]: Started udev Coldplug all Devices.
5/29/2025, 3:25:46 PM
function debounce(func, delay) {
let timeoutId;
return function(...args) {
clearTimeout(timeoutId);
timeoutId = setTimeout(() => {
func.apply(this, args);
}, delay);
};
}
// Usage
window.addEventListener('resize', debounce(() => {
console.log('Window resized');
}, 300));