Skip to content

Instantly share code, notes, and snippets.

View rickd-uk's full-sized avatar
🏠
Working from home

Rick D rickd-uk

🏠
Working from home
View GitHub Profile
@ivanfioravanti
ivanfioravanti / animation.html
Created February 25, 2025 06:06
Interactive Particle Animation Sonnet 3.7
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>P5.js Particle Animation</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.min.js"></script>
<style>
body {
margin: 0;
@rickd-uk
rickd-uk / hsrv.py
Created February 1, 2025 06:28
Start Python HTTP Server for DEV
#!/usr/bin/env python3
import socket
import sys
import os
import signal
import subprocess
import atexit
import psutil
from pathlib import Path
import React from 'react';
import moment from 'moment';
import Image from 'next/image';
import Link from 'next/link';
const FeaturedPostCard = ({ post }) => (
<div className="relative h-72">
<div className="absolute rounded-lg bg-center bg-no-repeat bg-cover shadow-md inline-block w-full h-72" style={{ backgroundImage: `url('${post.featuredImage.url}')` }} />
<div className="absolute rounded-lg bg-center bg-gradient-to-b opacity-50 from-gray-400 via-gray-700 to-black w-full h-72" />
<div className="flex flex-col rounded-lg p-4 items-center justify-center absolute w-full h-full">
@rickd-uk
rickd-uk / opensource-alternatives.txt
Last active March 16, 2021 11:58
OPENSOURCE ALTERATIVES OF POPULAR SERVICES
ARCHIVE WEB PAGES - ARCHIVE_BOX
https://awesomeopensource.com/project/ArchiveBox/ArchiveBox
https://github.com/ArchiveBox/ArchiveBox
SAVE WEB PAGES - WALLABAG
https://wallabag.org/en#
https://github.com/wallabag
STORE PASSWORDS - LESSPASS
@kriscard
kriscard / gist:36025e0e7209ebbb4d98aab2777cc3ab
Created June 17, 2019 08:50
Example of Spaceship Prompt config
#
# Spaceship ZSH Theme
#
# Author: Denys Dovhan, denysdovhan.com
# License: MIT
# https://github.com/denysdovhan/spaceship-zsh-theme
# ------------------------------------------------------------------------------
# CONFIGURATION
# The default configuration that can be overridden in .zshrc
@bradtraversy
bradtraversy / vsc_js_snippets.json
Last active September 3, 2025 00:32
VSCode JavaScript Snippets
{
"Console Log": {
"prefix": "cl",
"body": "console.log($1);",
"description": "Console Log"
},
"Named Function": {
"prefix": "nfn",
"body": ["function ${1:functionName}($2) {", " $3", "}"],
"description": "Named Function"
@santisbon
santisbon / Search my gists.md
Last active November 26, 2025 13:48
How to search gists.

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html

@mprajwala
mprajwala / import_csv_to_mongo
Last active July 23, 2023 20:07
Store CSV data into mongodb using python pandas
#!/usr/bin/env python
import sys
import pandas as pd
import pymongo
import json
def import_content(filepath):
mng_client = pymongo.MongoClient('localhost', 27017)