This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .SYNOPSIS | |
| Download AI models from Hugging Face in the format `zylon-cli models download` produces | |
| when forge falls back to Hugging Face: | |
| /var/zylon/ai-models/models--<org>--<name>/ files flat, plus SHA256SUMS and metadata.json | |
| .DESCRIPTION | |
| Run it on the node, with sudo: sudo pwsh ./zylon-hf-models.ps1 -Token hf_... org/model-name | |
| Needs curl. Re-running resumes: files already downloaded and verified are kept. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="description" content="Twelve discarded Zylon loading animation studies, each in dark and light themes."><title>Zylon — Discarded animation studies</title><style>*{box-sizing:border-box}body{margin:0;padding:28px;background:#e9e9ed;color:#292a2f;font:14px system-ui,-apple-system,sans-serif}main{max-width:1680px;margin:auto}h1{margin:0 0 8px;font-size:28px;letter-spacing:-.8px}.intro{margin:0 0 24px;line-height:1.6;color:#666673}.grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.study{border:1px solid #8883;border-radius:12px;padding:14px;overflow:hidden}.dark{background:#141416;color:#fafaf9;--color-foreground:#fafaf9}.light{background:#fafaf9;color:#1f1f29;--color-foreground:#1f1f29}header{display:flex;gap:7px;align-items:baseline;min-height:35px}header>span{font-size:10px;opacity:.55}h2{font-size:12px;margin:0;font-weight:600;flex:1}.theme-label{whi |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "type": "object", | |
| "properties": { | |
| "$schema": { | |
| "type": "string" | |
| }, | |
| "meta": { | |
| "type": "object", | |
| "properties": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function uuid7(): UUID { | |
| // Simple implementation using built in gen_random_uuid() | |
| // gen_random_uuid(): '4047541d-a7bf-4d8a-87c2-585cab7ef52e' | |
| // strip random head and version: '_______________d8a-87c2-585cab7ef52e' | |
| // concatenate epoch and version 7: 'xxxxxxxx-xxxx-7d8a-87c2-585cab7ef52e | |
| const v4 = uuid.v4().slice(8 + 4 + 2 + 1, 36); | |
| const date = Date.now().toString(16).padStart(12, '0'); | |
| return date.slice(0, 8) + '-' + date.slice(8, 8 + 5) + '-7' + v4; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -o errexit | |
| # Author: David Underhill | |
| # Script to permanently delete files/folders from your git repository. To use | |
| # it, cd to your repository's root and then run the script with a list of paths | |
| # you want to delete, e.g., git-delete-history path1 path2 | |
| if [ $# -eq 0 ]; then | |
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #IfWinActive, ahk_class POEWindowClass | |
| active:=true | |
| `:: | |
| active:=!active | |
| return | |
| $2:: | |
| if(!active) { | |
| send, 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.* | |
| import kotlin.reflect.KProperty | |
| class MutableFieldProperty<R, T : Any>(private val initializer: (R) -> T) { | |
| private val map = WeakHashMap<R, T>() | |
| operator fun getValue(thisRef: R, property: KProperty<*>): T = | |
| map[thisRef] ?: setValue(thisRef, property, initializer(thisRef)) | |
| operator fun setValue(thisRef: R, property: KProperty<*>, value: T): T { | |
| map[thisRef] = value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.facebook.binaryresource.BinaryResource | |
| import com.facebook.cache.common.CacheKey | |
| import com.facebook.cache.common.WriterCallback | |
| import com.facebook.cache.disk.FileCache | |
| import com.facebook.crypto.Crypto | |
| import com.facebook.crypto.Entity | |
| import java.io.InputStream | |
| fun configureFresco() { | |
| val frescoConfig = ImagePipelineConfig.newBuilder(context) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.lang.annotation.ElementType; | |
| import java.lang.annotation.Retention; | |
| import java.lang.annotation.RetentionPolicy; | |
| import java.lang.annotation.Target; | |
| @Target(ElementType.FIELD) | |
| @Retention(RetentionPolicy.RUNTIME) | |
| public @interface DaggerOverride { | |
| Class<?> value(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set PATH /home/pablo/development/android-studio/bin $PATH | |
| set PATH /home/pablo/development/flatbuffers-1.1.0 $PATH | |
| set PATH /home/pablo/Android/Sdk/platform-tools/ $PATH | |
| set PATH /home/pablo/Android/Sdk/tools/ $PATH | |
| set PATH /home/pablo/.gem/ruby/1.9.1/bin $PATH | |
| set PATH /home/pablo/Android/NDK $PATH | |
| set PATH /home/pablo/.cargo/bin $PATH | |
| set PATH /home/pablo/swift-2.2/usr/bin $PATH | |
| set -g -x CC /usr/bin/clang |
NewerOlder