inputs = [1, 2, 3, 2.5]
weights = [0.2, 0.8, -0.5, 1.0]
bias = 2.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
| VERSION = \"1.0.0\" | |
| PREFIX ?= out | |
| INCDIR = include | |
| SRCDIR = src | |
| LANG = c | |
| OBJDIR = .obj | |
| MODULE ?= binary_name | |
| CC ?= gcc |
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
| #Simple size about 298Mb. Bun v1.0.21 | |
| FROM oven/bun:latest as build-stage | |
| WORKDIR /dist | |
| COPY . . | |
| COPY .env.production .env | |
| COPY package.json package.json | |
| COPY bun.lockb bun.lockb |
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
| /** | |
| * This magically uses batchexecute protocol. It's not documented, but it works. | |
| * | |
| * Licensed under: MIT License | |
| * | |
| * Copyright (c) 2024 Ruslan Gainutdinov | |
| * | |
| * 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 |
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
| { | |
| pkgs ? (import <nixpkgs> {}).pkgsMusl | |
| }: | |
| let | |
| inherit (pkgs) lib; | |
| llvmPkgs = pkgs.llvmPackages_13; | |
| stdenv = llvmPkgs.stdenv; | |
| # stdenv = llvmPkgs.libcxxStdenv; | |
| mkShell = pkgs.mkShell.override { inherit stdenv; }; | |
| hello_c = pkgs.writeText "hello.c" '' |
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
| Phoenix esbuild with Tailwind+Fontawesome |
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
| ========= ========== ===== ===== | |
| ========= ============ ====== ====== | |
| === === ==== ===== ===== | |
| === ========= ====== ====== INSTALLIN' THAT SWEET SWEET | |
| === ======== ============= BIG IRON ON YOUR LINUX LAPTOP | |
| === ========= ============= OR SERVER - BY MR. SKILLFULL | |
| === === ==== === === === | |
| ========= ============ ===== = ===== | |
| ========= ========== ===== ===== |
I recently stumbled upon Falsehoods programmers believe about time zones, which got a good laugh out of me. It reminded me of other great lists of falsehoods, such as about names or time, and made me look for an equivalent for Ethereum. Having found none, here is my humble contribution to this set.
Calling estimateGas will return the gas required by my transaction
Calling estimateGas will return the gas that your transaction would require if it were mined now. The current state of the chain may be very different to the state in which your tx will get mined. So when your tx i
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
| # /etc/sysctl.d/wireguard.conf | |
| net.ipv4.ip_forward=1 | |
| net.ipv6.conf.all.forwarding=1 | |
| net.ipv6.conf.default.forwarding=1 | |
| net.ipv6.conf.eth0.proxy_ndp=1 | |
| #/etc/wireguard/wg0.conf (DO virtual machine) | |
| [Interface] | |
| # The server interface does not actually need an ipv6. | |
| # The 2 following must be repeated for each used addres [0, 1] |
NewerOlder