arch4edu
リポジトリを追加する。paru -Syu rocm-hip-sdk rocm-opencl-sdk python-pytorch-rocm python-torchvision-rocm python-numpy yq
virtualenv --system-site-packages sdenv
source sdenv/bin/activate
git clone https://github.com/CompVis/stable-diffusion.git && cd stable-diffusion
yq '.dependencies[].pip?[]' environment.yaml | sed 's/"//g' | xargs -L1 pip install
https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt
からチェックポイントファイルを入手して、models/ldm/stable-diffusion-v1/model.ckpt
に置くpython scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms
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
(defun vulpea-project-p () | |
"Return non-nil if current buffer has any todo entry. | |
TODO entries marked as done are ignored, meaning the this | |
function returns nil if current buffer contains only completed | |
tasks." | |
(seq-find ; (3) | |
(lambda (type) | |
(eq type 'todo)) | |
(org-element-map ; (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
public abstract class RightDrawableOnTouchListener implements OnTouchListener { | |
Drawable drawable; | |
private int fuzz = 10; | |
/** | |
* @param keyword | |
*/ | |
public RightDrawableOnTouchListener(TextView view) { | |
super(); | |
final Drawable[] drawables = view.getCompoundDrawables(); |
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
#### | |
# Description:a ruby script to monitor metaq queue size | |
# Requirements: zookeeper | |
# sudo gem install zookeeper | |
# | |
##### | |
require 'rubygems' | |
require 'zookeeper' | |
require 'socket' |
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
∴ lein2 all test | |
Performing task 'test' with profile(s): 'dev,1.2' | |
Testing clj-http.test.client | |
Testing clj-http.test.cookies | |
Testing clj-http.test.core | |
Ran 47 tests containing 175 assertions. |
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
(defproject foo "1.0.0-SNAPSHOT" | |
:description "FIXME: write description" | |
:dependencies [[org.clojure/clojure "1.3.0"] | |
[org.clojure/clojurescript "0.0-927"]]) |
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
; Final pre-processed "transcriptions" of several Coltrane "Giant Steps" solos | |
; are here: https://github.com/daveray/yardbird | |
; Please take the data and do something fun with it! | |
; TODO | |
; Incorporate changes | |
; Convert to concert pitch | |
; Convert to correct octave | |
(use 'overtone.live) |
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
#!/usr/bin/clisp | |
(defconstant ticks (list "▁" "▂" "▃" "▄" "▅" "▆" "▇" "█")) | |
(defun spark (data-list) | |
(let ((max-value (apply #'max data-list)) | |
(ticks-length (length ticks))) | |
(let ((ticks-unit (/ max-value (- ticks-length 1)))) | |
(map 'list (lambda (x) (elt ticks (ceiling (/ x ticks-unit)))) data-list)))) |
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
# | |
# usage, convert this work method to a Runnable anonymous class | |
# | |
# @anonymous_class(Runnable, 'run') | |
# def work(dummy): | |
# print 'hello world' | |
# | |
# work.run() | |
# | |
import types |
NewerOlder