This Web Components keeps the year in your copyright notice up-to-date.
export { CopyrightYearElement }
const name = "copyright-year";
class CopyrightYearElement extends HTMLSpanElement {
The MIT License (MIT) | |
Copyright (c) 2016 Emilien Dupont | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
(() => { | |
const SHOW_SIDES = false; // color sides of DOM nodes? | |
const COLOR_SURFACE = true; // color tops of DOM nodes? | |
const COLOR_RANDOM = false; // randomise color? | |
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
const THICKNESS = 20; // thickness of layers | |
const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
import dlib | |
import cv2 | |
#step1: read the image | |
image = cv2.imread("./testimages/test1.jpg") | |
#step2: converts to gray image | |
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) | |
#step3: get HOG face detector and faces |
/** | |
* GradientHDRAttribute created by Chance Millar at Two Tails Games on 2018/05/08 | |
* Use freely. That's a license, right? | |
* | |
* Attach attribute like so: | |
* | |
* [GradientHDR] | |
* public Gradient _HDRGradient; | |
* | |
* Make sure this is placed in a non-Editor folder inside Assets. |
Considering the lack of multi-threaded download support in the official huggingface-cli
, and the inadequate error handling in hf_transfer
, this command-line tool smartly utilizes wget
or aria2
for LFS files and git clone
for the rest.
--exclude
or --include
to skip or specify files, save time for models with duplicate formats (e.g., *.bin
or *.safetensors
).--hf_username
and --hf_token
to authenticate.HF_ENDPOINT
environment variable.#!/usr/bin/env bash | |
# ensure we were given two command line arguments | |
if [[ $# -ne 2 ]]; then | |
echo 'usage: vault-cp SOURCE DEST' >&2 | |
exit 1 | |
fi | |
source=$1 | |
dest=$2 |
typedef struct _STARTUPINFOW { | |
UINT32 cb; | |
LPWSTR lpReserved; | |
LPWSTR lpDesktop; | |
LPWSTR lpTitle; | |
UINT32 dwX; | |
UINT32 dwY; | |
UINT32 dwXSize; | |
UINT32 dwYSize; | |
UINT32 dwXCountChars; |