Skip to content

Instantly share code, notes, and snippets.

@mkwng
mkwng / simple-neural-network.tsx
Created April 15, 2024 07:03
Simple Neural Network in TypeScript React
import React, { useState } from 'react';
// Define the neural network structure
interface NeuralNetworkProps {
inputs: number[];
weights: number[];
bias: number;
}
const NeuralNetwork: React.FC<NeuralNetworkProps> = ({ inputs, weights, bias }) => {
@mkwng
mkwng / simple-neural-net-react-typescript.tsx
Created April 15, 2024 06:43
Simple Neural Network in React with TypeScript
```typescript
import React, { useState } from 'react';
interface NeuralNetworkProps {
inputs: number[];
weights: number[];
bias: number;
}
const NeuralNetwork: React.FC<NeuralNetworkProps> = ({ inputs, weights, bias }) => {
@mkwng
mkwng / contracts...boxcutter.sol
Created October 28, 2021 18:42
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.2+commit.661d1103.js&optimize=true&runs=200&gist=
// // SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
contract CompanionBoxcutter2000 is ERC1155, Ownable {
uint256 public tokenCounter;
uint256 public constant MAX_SUPPLY = 888;
uint256 public boxcutterId = 1;

Keybase proof

I hereby claim:

  • I am mkwng on github.
  • I am mkwng (https://keybase.io/mkwng) on keybase.
  • I have a public key whose fingerprint is 7CAD 586E EC95 616A 1E49 C34A C457 3A69 53BB 2D91

To claim this, I am signing this object: