One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
FROM php:7.1.2-apache | |
RUN docker-php-ext-install mysqli |
# got to handle both escaped and literal | |
df.replace(to_replace=[r"\\t|\\n|\\r", "\t|\n|\r"], value=["",""], regex=True, inplace=<INPLACE>) |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# | |
# Made by p4p1 | |
# wallpaper-gen | |
# can be found on a website: https://p4p1.github.io/wallpaper-gen.html | |
# | |
# Description: | |
# Script to generate a wallpaper from a folder of different images | |
# And displays them in a grid layout as followed: |
/** | |
* This checks for newer releases on GitHub. If any newer versions can be found, it returns a promise resolving as the latest version tag. Otherwise the promise resolves as null. | |
* @param {String} releaseTag The release tag of the code you implement this into. | |
* @param {String} repo The repository containing the code. | |
* @returns A Promise, resolving as the version tag if the provided release tag doesn't match the one provided on GitHub. | |
*/ | |
const checkIfOutdated = (releaseTag, repo) => new Promise(async (resolve, reject) => { | |
const releases = await fetch(`https://api.github.com/repos/${repo}/releases`).then(res => res.json()); | |
if(!Array.isArray(releases)) return reject(); | |
const latestRelease = releases[0]; |