Skip to content

Instantly share code, notes, and snippets.

View mvaldes14's full-sized avatar

Miguel Valdes mvaldes14

View GitHub Profile
@mvaldes14
mvaldes14 / wallpaper_manager.py
Created October 20, 2017 18:11
Wallpaper_manager
#!/usr/bin/env python
# Wallpaper Manager
import os
import re
import random
PICTURE_PATH = '/home/yourusername/Pictures'
PICTURE_PATTERN = 'wall_\d*'
@mvaldes14
mvaldes14 / pomodoro.py
Created January 4, 2018 13:47
Pomodoro Threads
#!/usr/bin/python
"""
Script that spawns 2 threads.
1. Will start a notification that alerts you to keep working or if you deserve a break
2. Countdown timer to display in your polybar
"""
import time
from datetime import datetime, timedelta
import subprocess
import threading
@mvaldes14
mvaldes14 / index.html
Created September 5, 2018 21:48
Book List - index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.css" />
<style>
.success, .error {
color: white;
@mvaldes14
mvaldes14 / app.js
Created September 5, 2018 21:49
Booklist - app.js
// Book
class Book {
constructor(title, author, isbn) {
this.title = title;
this.author = author;
this.isbn = isbn;
}
}
// UI Control