Skip to content

Instantly share code, notes, and snippets.

View nknighta's full-sized avatar
:octocat:
make app🛠

Nknight AMAMIYA nknighta

:octocat:
make app🛠
View GitHub Profile
@nknighta
nknighta / as408.mr
Created June 14, 2025 20:10
engine simulator script
import "engine_sim.mr"
units units()
constants constants()
impulse_response_library ir_lib()
label cycle(2 * 360 * units.deg)
private node wires {
output wire1: ignition_wire();
output wire2: ignition_wire();
const router = useRouter()
const { locale, locales, defaultLocale } = router
const currentLocale = locale || defaultLocale
const availableLocales = locales || []
@nknighta
nknighta / tsconfig.json
Created February 20, 2025 05:49
tsconfig for web3js
{
"compilerOptions": {
"target": "ES6",
"module": "commonjs",
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true,
"rootDir": "./src",
"outDir": "./dist"
(Get-FileHash <YOUR_FILE_NAME> -Algorithm sha256).hash.ToLower()
Write-Host("hello i'm amamiya!")
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Home | VARIUS</title>
<meta name="google-site-verification" content="Qjxxvj1jYae_WgPQU3DLHEhDgH_DlomNupTymcKRHUc">
<meta name="description" content="VARIUS development team">
<meta property="og:url" content="https://varius.technology/">
<meta property="og:title" content="Home | VARIUS">
import React, { ReactNode } from "react";
import Layout from "layout/main";
import { Box, Center, Text } from "@chakra-ui/react";
import HMeta from "components/headmeta";
import Image from "next/image";
export default function About() {
return (
<Layout>
<BgImage />
<HMeta pageTitle="About VARIUS" />
const anExampleVariable:number [] = [1,2,3,4,5,6,7];
const anExampleVariable2:number [] = [];
anExampleVariable.map(item => {
anExampleVariable2.push(item * 2)
})
console.log(...anExampleVariable2)
@nknighta
nknighta / toggle.jsx
Created January 7, 2024 13:52
React Toggle Button
const WebToggle = () => {
const [toggle, setToggle] = useState<boolean>(false);
toggle ? '#000' : '#fff';
return (
<div>
<h1>WebToggle</h1>
<button onClick={() => {
setToggle(!toggle);
}}
style={{
@nknighta
nknighta / countbtn.js
Created September 26, 2023 07:36
Count-and-Move
import React, {useState} from "react";
export default function Index () {
const [count, setCount] = useState(0);
return (
<>
test ui app
{count}
<div>