Skip to content

Instantly share code, notes, and snippets.

View splex7's full-sized avatar
🎯
Focusing

Hyungju Moon splex7

🎯
Focusing
View GitHub Profile
[
{
"keyword": "速い (hayai)",
"description": "Fast"
},
{
"keyword": "遅い (osoi)",
"description": "Slow"
},
{

GCP 프로젝트는 특정 리전에 속하지 않습니다. 대신, 리소스는 특정 리전에 배포됩니다. GCP 프로젝트 자체는 글로벌 단위로 존재하며, 리소스 배포 시 선택한 리전에 따라 리소스가 위치하게 됩니다.

하지만 프로젝트의 리소스를 사용할 수 있는 리전과 영역을 확인하려면 다음과 같은 방법을 사용할 수 있습니다:

  1. GCP 콘솔에서 확인:

    • GCP 콘솔에 로그인하고, 좌측 상단의 탐색 메뉴에서 "Compute Engine" -> "VM 인스턴스"로 이동합니다.
    • 인스턴스를 생성하거나 수정하는 과정에서 리전과 영역을 선택할 수 있습니다.
    • 리소스를 배포할 수 있는 리전 목록이 표시됩니다.
  2. gcloud CLI 사용:

@splex7
splex7 / torch.bat
Created November 1, 2023 14:03 — forked from acidsound/torch.bat
windows pytorch 2.0.1 설정
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118
// Here's a sample Node.js code that you can use to make a collage image with 100 circle cropped images using the Jimp image processing library:
const Jimp = require('jimp');
async function createCollage() {
const width = 1000; // Width of the collage image
const height = 1000; // Height of the collage image
const radius = 200; // Radius of the circles
const images = []; // Array to hold the cropped images
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
void main() {
GoRouter.setUrlPathStrategy(UrlPathStrategy.path);
runApp(MyApp());
}
class MyApp extends StatelessWidget {
MyApp({super.key});
### in each channel page
🚀almost all chat features
send text msg
send images
share msg
reply msg
etc...
🚀search vessel in chat
result 1 : show matched vessel
result 2 : show recent deals realted matched vessel
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.container {
left: 20px;
outline: 1px aqua solid;
@splex7
splex7 / upload.js
Created April 27, 2021 08:12 — forked from acidsound/upload.js
pastebin node.js API
const FormData = require('form-data')
const axios = require('axios')
const getUserKey = async ({
api_dev_key,
api_user_name,
api_user_password,
}) => {
const formData = new FormData()
formData.append('api_dev_key', api_dev_key)
// [1] 클로저
function foo() {
let yabal = [];
return {
addYabal(x) { yabal = [x, ...yabal] },
getYabal() { return yabal }
};
}
const bar = new foo();
bar.addYabal('rom');
@splex7
splex7 / about.html
Created January 17, 2019 00:41
about.html for scallop.landing
<div class="Mast Mast--about">
<div class="container">
<h4>브랜드 스토리</h4>
<h1>About Scallop</h1>
</div>
</div>
<section class="Section--about Section--about--1">
<div class="BgRect"></div>