Skip to content

Instantly share code, notes, and snippets.

@adrianhajdin
adrianhajdin / Loader.jsx
Created January 20, 2023 10:50
Build and Deploy a Full Stack MERN AI Image Generation App & MidJourney & DALL E Clone
import React from 'react';
const Loader = () => (
<div role="status">
<svg aria-hidden="true" className="inline w-10 h-10 mr-2 text-gray-200 animate-spin fill-[#6469ff]" viewBox="0 0 100 101" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z" fill="currentColor" />
<path d="M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511
@darconeous
darconeous / 3d-printing-trimmer-line.md
Last active April 8, 2025 22:24
3D Printing with Nylon Trimmer Line

3D Printing with Nylon Trimmer Line

Disclaimer

All of this information is provided AS IS, with no warranty or guarantee of accuracy. A good-faith effort has been made to ensure this document was accurate at the time it was written, but YOU ASSUME ALL RISK BY FOLLOWING ANY ADVICE BELOW.

Introduction

Nylon is a strong and impact-resistant thermoplastic that is used

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# 10_basic.py
# 15_make_soup.py
# 20_search.py
# 25_navigation.py
# 30_edit.py
# 40_encoding.py
# 50_parse_only_part.py
from kivy.app import App
from kivy.lang import Builder
from kivy.clock import Clock
from kivy.properties import ListProperty
from kivy.animation import Animation
KV = '''
#:import RGBA kivy.utils.rgba
<ImageButton@ButtonBehavior+Image>:
@zocker-160
zocker-160 / blender_cr_headless.md
Last active June 6, 2023 02:43
Setup a blender rendernode on a headless server with crowdrender addon

GUIDE: How To create a headless blender renderserver with CrowdRender addon

Requirements

  • any headless Linux server
  • Blender v2.79 or v2.80 - v2.93 (from package manager or blender.org)
  • latest version of CrowdRender addon
  • optional: GPU drivers for GPU-rendering

install and activate addon

@tshirtman
tshirtman / test_anim.py
Last active April 5, 2019 02:45
A simple example of animating a graphical instruction of a widget from a keyboard event.
from kivy.app import App
from kivy.animation import Animation
from kivy.lang import Builder
from kivy.properties import NumericProperty
from kivy.core.window import Window
from kivy.uix.boxlayout import BoxLayout
KV = '''
FloatLayout:
import datetime
import email
import imaplib
import time
import logging
def readmail(volume):
time.sleep(1.5)
m = imaplib.IMAP4_SSL("imap.gmail.com")
# coding: utf8
from kivy.app import App
from kivy.uix.popup import Popup
from kivy.uix.scatter import Scatter
from kivy.properties import ObjectProperty, ListProperty, \
StringProperty, NumericProperty
from kivy.lang import Builder
from kivy.factory import Factory
from json import load, dump
@serafeimgr
serafeimgr / upgrade_pip_packages.py
Created September 5, 2017 16:26
A python script to upgrade all outdated python packages.
"""
This script upgrades all outdated python packages.
"""
__author__ = "serafeimgr"
from multiprocessing import Pool, cpu_count
from subprocess import PIPE, Popen
def run_command(command):