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
{ stdenv, fetchFromGitHub, conf ? null, patches | |
, libxcb, xcbutilkeysyms, xcbutilwm | |
, libX11, writeText, xcbutil, xcbutilxrm }: | |
with stdenv.lib; | |
stdenv.mkDerivation rec { | |
version = "0.2"; | |
name = "2bwm-${version}"; |
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 python3 | |
"""Script to create a random wallpaper based on a single input color | |
Example: wpirify.py 1920 1080 -c "#4B9A62" -e "#CAEFC7" | |
""" | |
import argparse | |
from math import gcd | |
from random import choice, randint | |
import string | |
import numpy as np |
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
interface func { | |
(arg: any): any; | |
} | |
function compose(...funcs: func[]): func { | |
if (funcs.length === 1) { | |
return (arg: any) => funcs.shift()(arg); | |
} else if (funcs.length > 1) { | |
return (arg: any) => funcs.reduceRight((prev, item) => item(prev), arg); | |
} else { |
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
function compose(...funcs) { | |
if (funcs.length == 1) { | |
return arg => funcs.shift()(arg) | |
} else if (funcs.length > 1) { | |
return arg => funcs.reduceRight((val, func) => func(val), arg) | |
} else { | |
return null; | |
} | |
} |
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 python3 | |
import argparse | |
import json | |
import requests | |
import sys | |
BASE_URL = 'http://thesaurus.altervista.org/thesaurus/v1' | |
KEY = '' |
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 python3 | |
import argparse | |
import json | |
import requests | |
import sys | |
USER_NAME = '' | |
API_TOKEN = '' |
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 python3 | |
import json | |
from mutagen.mp3 import MP3 | |
from mutagen.id3 import ID3, APIC, error, TIT2, TALB, TPE1, TRCK, TCO | |
import os | |
import re | |
import requests | |
import sys | |
import time |
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 python3 | |
import argparse | |
import os | |
def main(todo_file, argv): | |
if (argv.add): | |
add_task(todo_file, argv.add) | |
elif (argv.delete): | |
delete_task(todo_file, argv.delete) |