Skip to content

Instantly share code, notes, and snippets.

View CreedsCode's full-sized avatar
🎯
Focusing

CreedsCode CreedsCode

🎯
Focusing
View GitHub Profile
@CreedsCode
CreedsCode / twitter_template.ipynb
Created June 1, 2022 05:55
My Twitter jupyter template.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pwndev
pwndev / updateChecker.js
Created September 27, 2021 18:09
A JavaScript function to check for newer versions using GitHub releases.
/**
* 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];
@p4p1
p4p1 / wallpaper-gen
Last active June 21, 2020 00:25
🍪🍪🍪🍪
#!/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:
@smram
smram / pandas_newline_strip.txt
Created October 4, 2017 23:35
[pandas] replace newlines,tabs,carriage returns in fields
# got to handle both escaped and literal
df.replace(to_replace=[r"\\t|\\n|\\r", "\t|\n|\r"], value=["",""], regex=True, inplace=<INPLACE>)
@jcavat
jcavat / Dockerfile
Last active June 18, 2024 13:20
docker-compose with php/mysql/phpmyadmin/apache
FROM php:7.1.2-apache
RUN docker-php-ext-install mysqli
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 2, 2024 17:43
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

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.

Prerequisites