Skip to content

Instantly share code, notes, and snippets.

View teddylee777's full-sized avatar
🏠
Working from home

Teddy Lee teddylee777

🏠
Working from home
View GitHub Profile
@teddylee777
teddylee777 / main.cpp
Last active April 6, 2018 02:16
카카였 μ˜ˆμ„  (λ³΄ν–‰μž 천ꡭ) - by Teddy
#include <vector>
#include <iostream>
#include <string.h>
using namespace std;
int MOD = 20170805;
int r[501][501];
int d[501][501];
@teddylee777
teddylee777 / main.cpp
Last active April 6, 2018 02:15
카카였 μ˜ˆμ„  (μΉ΄μΉ΄μ˜€ν”„λ Œμ¦ˆ 컬러링뢁)
#include <vector>
#include <iostream>
using namespace std;
int dx[] = { 1, -1, 0, 0 };
int dy[] = { 0, 0, 1, -1 };
vector<vector<int>> cache;
@teddylee777
teddylee777 / main.cpp
Last active April 6, 2018 02:14
카카였 μ˜ˆμ„  (4단 고음)
#include <vector>
#include <iostream>
using namespace std;
int cnt = 0;
int get_star(int n)
{
int cnt = 0;
@teddylee777
teddylee777 / quicksort.cpp
Last active April 6, 2018 02:14
Quicksort in C++
#include <algorithm>
#include <iostream>
using namespace std;
int partition(int* arr, int left, int right)
{
int i = left;
int pivot_value = arr[right];
for (int j = left; j < right; j++)
@teddylee777
teddylee777 / Solution.java
Created April 13, 2018 15:04
카카였 μ˜ˆμ„  (μΉ΄μΉ΄μ˜€ν”„λ Œμ¦ˆ 컬러링뢁)
package com.teddylee777;
import java.util.LinkedList;
import java.util.Queue;
class Solution {
static final int[] dX = {-1, 0, 1, 0};
static final int[] dY = {0, -1, 0, 1};
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>kbo κ΄€κ°μˆ˜ 크둀링</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<button type="button" id='startBtn' onclick="init()">μ‹œμž‘</button>
<button type="button" id='stopBtn' onclick="stop()">쀑지</button>
<div id="webcam-container"></div>
<div id="label-container"></div>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.3.1/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@teachablemachine/image@0.8/dist/teachablemachine-image.min.js"></script>
<script type="text/javascript">
// More API functions here:
// https://github.com/googlecreativelab/teachablemachine-community/tree/master/libraries/image
# ec2-user νŒ¨μŠ€μ›Œλ“œ μ„€μ •
sudo passwd ec2-user
# VNC Server μ„€μ •
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \
-activate -configure -access -on \
-configure -allowAccessFor -specifiedUsers \
-configure -users ec2-user \
-configure -restart -agent -privs -all
@teddylee777
teddylee777 / settings.json
Created October 12, 2025 12:31
Visual Studio Code (Windows μ‚¬μš©μžμš©) User Settings JSON 파일
{
// ============================================
// 에디터 κ΄€λ ¨ μ„€μ •
// ============================================
"editor.fontSize": 16,
"editor.fontVariations": false,
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.autoClosingBrackets": "never",
"editor.autoClosingQuotes": "never",
"editor.inlineSuggest.enabled": true,