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
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 December 8, 2022 03:34
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 June 11, 2024 02:58
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)