Skip to content

Instantly share code, notes, and snippets.

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

Nknight AMAMIYA nk4dev

:octocat:
make app🛠
View GitHub Profile
//正解
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// 最初の#を追加する
StringBuilder sb = new StringBuilder("#");
for (int i = 0; i < 3; i++ ) {
// 10新数ベースの色入力 (R G B)
int a = sc.nextInt();
@nk4dev
nk4dev / 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>
@nk4dev
nk4dev / 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={{
const anExampleVariable:number [] = [1,2,3,4,5,6,7];
const anExampleVariable2:number [] = [];
anExampleVariable.map(item => {
anExampleVariable2.push(item * 2)
})
console.log(...anExampleVariable2)
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" />
<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">
Write-Host("hello i'm amamiya!")
(Get-FileHash <YOUR_FILE_NAME> -Algorithm sha256).hash.ToLower()
@nk4dev
nk4dev / 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"
const router = useRouter()
const { locale, locales, defaultLocale } = router
const currentLocale = locale || defaultLocale
const availableLocales = locales || []