Skip to content

Instantly share code, notes, and snippets.

View JesusCastroFernandez's full-sized avatar
💭
Happy

JesusCastroFernandez

💭
Happy
View GitHub Profile
/*
* 제로베이스 백엔드 스쿨 15기
* 한새롬
* 미니과제 7. 로또당첨 프로그램
*
* Scanner의 입력함수와 조건문 및 반복문과 배열을 통한 로또 당첨 로직 작성
* 1. 로또 구매 수량 입력
* 2. 입력한 개수만큼의 로또 개수 생성
* 3. 로또 당첨 번호 생성(숫자값은 중복 배제 및 정렬해서 표시)
* 4. 당첨 번호와 구매 로또 비교하여 숫자 일치 여부 판단
@rashmi1821
rashmi1821 / main.dart
Created July 7, 2023 09:21
glorious-oak-4373
// void main() {
// greetName(name: 'ras', message: 'hello');
// }
// void greetName({String name, String message}) {
// print('$name, $message');
// }
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
/**
* 기타 레슨 문제
* 해당 문제는 이분 탐색 문제이다
* 처음에는 문제의 갈피를 못 잡았다. 어떤 것을 기준으로 비교해야 될지 모르기 때문이다.
* 여기서는 카운트를 통해서 문제를 해결해 나갈 수 있다.
* 즁간값을 뽑고 블루레이 최소 크기 후보가 된다. 각 레슨의 길이가 저장된 배열을 차례대로 탐색하여 한 블루레이 길이의 합이 mid보다 작도록 레슨 그룹으로 분리한다.
@freedom6xiaobai
freedom6xiaobai / inpaint-person.py
Created July 6, 2023 07:43 — forked from Mason-McGough/inpaint-person.py
A simple script that removes people from photos using the stable-diffusion-webui API
import os
import json
import base64
import io
import requests
import torch
from torchvision.models.segmentation import fcn_resnet50, FCN_ResNet50_Weights
from torchvision import transforms
from torchvision.io.image import read_image
@jenskueper
jenskueper / index.html
Created July 6, 2023 07:36
SW6 login image
This file has been truncated, but you can view the full file.
<html>
<head><meta charset="utf-8" /></head>
<body>
<div> <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
<script type="text/javascript">/**
* plotly.js v2.24.1
* Copyright 2012-2023, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
aarch64-darwin python311Packages.gpib-ctypes
x86_64-darwin python310Packages.gpib-ctypes
x86_64-darwin python311Packages.gpib-ctypes
x86_64-linux python311Packages.gpib-ctypes
aarch64-linux python310Packages.gpib-ctypes
x86_64-linux python310Packages.gpib-ctypes
aarch64-darwin python310Packages.gpib-ctypes
aarch64-linux python311Packages.gpib-ctypes
@liamwh
liamwh / axum-websockets.rs
Last active July 6, 2023 07:30
Axum Websocket example
use std::{net::SocketAddr, sync::Arc};
use axum::{
debug_handler,
extract::{ws::WebSocket, ConnectInfo, Path, Query, State, WebSocketUpgrade},
response::{IntoResponse, Json},
};
use cloudevents::{AttributesReader, Event};
use serde::Deserialize;
use tokio::sync::broadcast::Receiver;