Skip to content

Instantly share code, notes, and snippets.

@xiupos
xiupos / example.nim
Created April 29, 2020 06:54
Feedforward neural network on Nim
import math, random, sugar
type
Matrix[T; M, N: static[int]] = array[1..M, array[1..N, T]]
# 加法
proc `+`[T, I, J](a: Matrix[T, I, J], b: T): Matrix[T, I, J] =
var c: Matrix[T, I, J]
for i in 1..I:
for j in 1..J:

Keybase proof

I hereby claim:

  • I am ha2zakura on github.
  • I am ha2zakura (https://keybase.io/ha2zakura) on keybase.
  • I have a public key ASBXf14_VgJlobfkmwHznpVO3hqwpDWbRjPrySpIy9ti4Qo

To claim this, I am signing this object:

@xiupos
xiupos / 0gentoo.md
Last active October 11, 2024 08:56
Gentoo Linux インストールメモ
@xiupos
xiupos / en.md
Last active September 30, 2023 01:44
Monoarkhism

EN / JA

Monoarkhism

Experimental faith for the modern age

Bible

In the beginning they created the principle. Now the world was derived from it.

Keybase proof

I hereby claim:

  • I am xiupos on github.
  • I am xiupos (https://keybase.io/xiupos) on keybase.
  • I have a public key ASB-fY0z2cNx9LuSB2tB6gIM1b0NB-CMKbaxO1qzwHXyBgo

To claim this, I am signing this object:

@xiupos
xiupos / manjaro.md
Last active October 15, 2024 12:14

sudo without password

sudo bash -c "echo '%wheel ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers"

logout & login

yay

#EXTM3U
#EXTENC: UTF-8
#EXTINF:1,ABC Classic FM NSW
http://live-radio01.mediahubaustralia.com/2FMW/mp3/;*.mp3
#EXTINF:1,ABC Triple J
http://live-radio01.mediahubaustralia.com/2TJW/aac/
#EXTINF:1,LISTEN.moe
https://listen.moe/stream
#EXTINF:1,ORF Radio FM4
https://orf-live.ors-shoutcast.at/fm4-q1a
@xiupos
xiupos / d-ribbon.json5
Last active May 14, 2023 03:37
"Ribbon Dark" a dark theme for Misskey v13
{
id: '4f36ff7f-f087-45bd-bbbe-83b9a8e412d8',
base: 'dark',
name: 'Ribbon Dark',
props: {
X2: ':darken<2<@panel',
X3: 'rgba(255, 255, 255, 0.05)',
X4: 'rgba(255, 255, 255, 0.1)',
X5: 'rgba(255, 255, 255, 0.05)',
X6: 'rgba(255, 255, 255, 0.15)',