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
| function Example() { | |
| return ( | |
| <aside className='relative items-center justify-center flex-1 hidden text-white lg:flex'> | |
| <Image src={mask} alt='mask' className='absolute top-0 left-0' /> | |
| <Image | |
| src={mask} | |
| alt='mask' | |
| className='absolute bottom-0 right-0 rotate-180' | |
| /> | |
| <Blob className={'absolute'} /> |
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
| import { getCount_IndexOf } from "./indexof.ts"; | |
| import { getCount_Set } from "./set.ts"; | |
| const input = | |
| "hello world i am very big string maybe with vowel maybe not with wovel...."; | |
| // Performance test each function 1000000 times | |
| const start_IndexOf = Date.now(); | |
| for (let i = 0; i < 1000000; i++) { | |
| getCount_IndexOf(input); |
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
| 0 verbose cli C:\Program Files\nodejs\node.exe C:\Users\Bruger\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js | |
| 1 info using npm@9.4.1 | |
| 2 info using node@v18.15.0 | |
| 3 timing npm:load:whichnode Completed in 1ms | |
| 4 timing config:load:defaults Completed in 2ms | |
| 5 timing config:load:file:C:\Users\Bruger\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 1ms | |
| 6 timing config:load:builtin Completed in 1ms | |
| 7 timing config:load:cli Completed in 1ms | |
| 8 timing config:load:env Completed in 1ms | |
| 9 timing config:load:file:C:\Users\Bruger\Desktop\dev\app-playground\.npmrc Completed in 1ms |
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
| use dotenv::dotenv; | |
| use std::env; | |
| use serenity::async_trait; | |
| use serenity::framework::standard::macros::{command, group}; | |
| use serenity::framework::standard::{CommandResult, StandardFramework}; | |
| use serenity::model::channel::Message; | |
| use serenity::prelude::*; | |
| #[group] |
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
| [package] | |
| name = "one1" | |
| version = "0.1.0" | |
| edition = "2021" | |
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
| [dependencies] | |
| dotenv = "0.15.0" | |
| serenity = "0.11.5" |
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
| FROM rust:slim-buster AS builder | |
| WORKDIR /prod | |
| COPY Cargo.lock . | |
| COPY Cargo.toml . | |
| RUN mkdir .cargo | |
| # This is the trick to speed up the building process. | |
| # RUN cargo vendor > .cargo/config | |
| COPY . . |
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
| #![allow(dead_code)] | |
| use std::fmt::{Display, Formatter}; | |
| struct Sad; | |
| struct Happy; | |
| #[derive(Debug)] | |
| enum RustLevel { | |
| Beginner, | |
| TrashDevLevel, |
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
| use std::collections::HashMap; | |
| use std::str::FromStr; | |
| enum Token { | |
| Plus, | |
| Minus, | |
| Asterisk, | |
| Slash, | |
| LParen, | |
| RParen, |
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
| generator client { | |
| provider = "prisma-client-js" | |
| } | |
| datasource db { | |
| provider = "postgresql" | |
| url = env("DATABASE_URL") | |
| } | |
| enum Status { |
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
| mod input; | |
| #[derive(Debug, Clone, Copy)] | |
| struct Elf { | |
| calories: u32, | |
| } | |
| impl Elf { | |
| fn new(calories: u32) -> Elf { | |
| Elf { calories: calories } |