본문 바로가기
반응형

IT414

pyenv 를 이용한 파이썬 설치 on RockyLinux8.10 sudo dnf -y install gcc bzip2 bzip2-devel openssl openssl-devel readline readline-devel sqlite-devel tk-devel git # python 3.11 버전 설치시 오류가 발생해서 아래 추가 설치sudo dnf install -y make xz-devel libffi-devel # root 유저로 권한 변경 후 아래 명령들 실행 cd /usr/local git clone https://github.com/pyenv/pyenv.gitcd pyenv mkdir {versions,shims} cd plugins git clone https://github.com/pyenv/pyenv-virtualenv.gitgit clone http.. 2024. 6. 28.
clsx 모듈 - css 조건 적용하기 설치npm i clsx  활용 button.tsxclassName == css class 쪽에 clsx 와 : 을 이용해서 조건을 이용해서 css 가 적용되게 한다.import clsx from "clsx";export default function Button ({ kind = 'default', ...props} : React.ButtonHTMLAttributes & { kind? : 'default' | 'important' | 'reference';}) { return ( )} various-buttons.tsx'use client'import Button from "./button"import React, {useState} from "react"expo.. 2024. 6. 27.
[TypeScript]제네릭 선언 안 닫게 하기 ( auto-close-tag plugin ) 플러그인을 찾아서 톱니바퀴 선택 Extension Settings 선택후, 아래 그림 선택 셋팅파일에 제외할 언어를 빼준다.  "auto-close-tag.activationOnLanguage": [ "html", "xml", "javascript", "javascriptreact", "typescriptreact" ], typescriptreact 를 넣자니, 똑같고 빼자니 안닫히고... 계륵이다... 2024. 6. 27.
[crewai] Hello World! 실행해 보기 재미있는 AI를 발견해서 Getting Started 를 따라해 보았습니다. crewAI - Platform for Multi AI Agents Systems 1,400,000+ Multi-Agent Crews run last 7 days using crewAI." data-og-host="www.crewai.com" data-og-source-url="https://www.crewai.com/" data-og-url="https://www.crewai.com/" data-og-image="https://blog.kakaocdn.net/dna/caZ3dk/hyWrX6g8uC/AAAAAAAAAAAAAAAAAAAAAHtgOec__zZwT533azfulNLDqVbUmW4y6zhr8x0U1d1r/img.png?credential=yqXZFxpELC7KVnFOS48ylbz2pIh7yKj8&expires=1753973999&allow_ip=&allow_referer=&signature=iQoAiInSVCFqgZq4tGZqunZAYD4%3D 2024. 6. 27.
[Next.js] React 복습 및 약간의 실습 - 프로파일 화면 만들기 app/composition/user-detail.tsx 파일 작성'use client';import React from 'react';interface ProfilePictureProps { src: string; }interface ProfileDetailsProps { name: string; email: string; }interface ContactButtonProps { onClick: () => void; }interface UserProfileCardProps { user: { profilePicture: string; name: string; email: string; }; onContactClick: () => void;}const .. 2024. 6. 25.
[Next.js]프로젝트 시작 환경구성 vscode plugin 프로젝트 생성은 npx create-next-app@latest 를 이용하며,src/폴더 사용 이외에는 모두 Yes 를 선택합니다. 2024. 6. 24.
[TS]Next.js 기초 - SSG 실습을 위해 next.js 프로젝트를 생성한다. npx create-next-app@latest --ts next-sample생성시 질의는 모두 No~~! SSG - Static Site Generation 정적사이트 생성빌드시 페이지를 생성한다. -- 사용 함수export const getStaticProps: GetStaticProps  =  async(context) =>pages/ssg.tsx 로 파일생성한다.next.js 에서는 폴더/파일 구조로 tsx 파일을 생성하면 그대로 호출 주소가 된다.즉, localhost:3000/ssg 로 호출 하면 이 페이지가 호출된다.import { GetStaticProps, NextPage } from "next";import Head from "next/h.. 2024. 6. 22.
m2ee-tools 설치하기 1. vmware 이용 : debian12 설치완료apt update 로 최신 패키지 업데이트! 2. m2ee tools 설치참고페이지m2ee-tools/doc/install-1.md at master · mendix/m2ee-tools · GitHub m2ee-tools/doc/install-1.md at master · mendix/m2ee-toolsm2ee, the Mendix runtime helper tools for GNU/Linux - mendix/m2ee-toolsgithub.com # 소스리포지터리 추가sudo vi /etc/apt/sources.list.. 마지막 줄deb http://packages.mendix.com/platform/debian/ bookworm main contri.. 2024. 6. 20.
함수형 프로그래밍 with 자바 - 랜덤 생성수 통계(feat.ThreadLocalRandom) 랜덤 생성수를 이용한 통계시, 함수형 자바 이용하기 예제 입니다. package kr.samdogs.study.func.pojo;import java.util.IntSummaryStatistics;import java.util.Random;import java.util.SplittableRandom;import java.util.concurrent.ThreadLocalRandom;import java.util.function.IntUnaryOperator;public class RandomNumber { public static void main(String[] args) { //랜덤하게 발생하는 숫자 * 2 통계 //공통 int elementsCount = 100_000_000; IntU.. 2024. 6. 19.
반응형