Skip to content

Instantly share code, notes, and snippets.

View nulta's full-sized avatar
๐Ÿ˜‡

nulta nulta

๐Ÿ˜‡
  • Kyungpook National University
  • South Korea
  • 12:19 (UTC +09:00)
View GitHub Profile

Warning

Deprecated: ์ด gist๋Š” DEPS Protocol์˜ ์ดˆ์•ˆ์ด์—ˆ์œผ๋ฉฐ, ํ˜„์žฌ ์ž‘์—…ํ•˜๊ณ  ์žˆ๋Š” ๊ฒƒ๊ณผ ๋‹ค๋ฆ…๋‹ˆ๋‹ค.

์ตœ์‹  ๋ฌธ์„œ๋Š” ์•„๋ž˜์—์„œ ์ œ๊ณตํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

https://github.com/nulta/deps-protocol

์š”์•ฝ

@nulta
nulta / ! s2idle_optimization_how.md
Last active April 14, 2026 05:45
Optimize `s2idle` on Framework Laptop (12th Gen Intel Core) to make it consume less power as possible

Optimize s2idle on Framework Laptop (12th Gen Intel Core)

to make it consume less power as possible

what does it do

  • disables trackpad, keyboard, HDMI, etc, during sleep
    • Note: you'll no longer be able to wake the laptop by plugging in devices, or tapping a trackpad
  • disables Bluetooth and Wi-Fi during sleep
  • automatically applies powertop --auto-tune on boot
  • so that SYS%LPI during sleep state will be improved from ~85% to ~95% (around +10%p)
using System;
using System.Diagnostics.CodeAnalysis;
namespace AliasOf;
/// <summary>
/// primitive ๊ฐ’์˜ ๋ณ„์นญ์„ ์ •์˜ํ•˜๋Š” ๋ ˆ์ฝ”๋“œ. ์˜ˆ์‹œ:
/// <code>public record UserId : AliasOf&lt;int, UserId&gt; { }</code>
/// </summary>
/// <typeparam name="TValue">๋ณ„์นญ์ด ๋˜๋Š” primitive ๊ฐ’์˜ ํƒ€์ž….</typeparam>
// ==UserScript==
// @name Copy all video IDs from current Youtube playlist
// @version 2025-10-01
// @description try to take over the world!
// @author nulta
// @match https://www.youtube.com/watch*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// @run-at context-menu
// ==/UserScript==

Windows 11 ์„ค์น˜ ํ›„ ๊ฐ€์žฅ ๋จผ์ € ํ•  ๊ฒƒ

// TODO

Microsoft ๋ถ™์€ ๊ฑฐ ์ „๋ถ€ ์—†์• ๊ธฐ

์‚ญ์ œ

  1. OneDrive ์‚ญ์ œ
  2. ์œˆ๋„์šฐ ๋ฉ”๋‰ด์— ๋ณด์ด๋Š” ๊ด‘๊ณ  ์ „๋ถ€ ์‚ญ์ œ
  3. ํ”„๋กœ๊ทธ๋žจ ์ถ”๊ฐ€/์ œ๊ฑฐ ๋“ค์–ด๊ฐ€์„œ ์—ฌ๊ธฐ์„œ ๋ณด์ด๋Š” ์“ธ๋ชจ์—†๋Š” ๊ฒƒ๋“ค ์ „๋ถ€ ์‚ญ์ œ
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from random import shuffle
def make_lotto_numbers():
pool = list(range(1, 45+1))
shuffle(pool)
return pool[:6], pool[6]
def main():
input_nums = set(map(int, input("์ˆซ์ž 6๊ฐœ๋ฅผ ์ž…๋ ฅ: ").split()))
if len(input_nums) != 6:
@nulta
nulta / explaination.md
Created May 24, 2024 06:29
Programmers 12977

์‹ค์Šต ๊ณผ์ œ 1

2024-05-24

์ฝ”๋“œ ์„ค๋ช…

class PrimeChecker

์†Œ์ˆ˜๋ฅผ ํŒ๋ณ„ํ•˜๋Š” ํ•จ์ˆ˜ is_prime(num: int) -> bool์„ ๊ฐ€์ง„ ํด๋ž˜์Šค์ž…๋‹ˆ๋‹ค. ์—๋ผํ† ์Šคํ…Œ๋„ค์Šค์˜ ์ฒด๋ฅผ ์‚ฌ์šฉํ•˜๋ฉฐ, ์†Œ์ˆ˜ ํŒ๋ณ„์— ํ•„์š”ํ•œ ์—ฐ์‚ฐ ๊ฒฐ๊ณผ์™€ ๊ฐ’๋“ค์„ ๋‚ด๋ถ€์ ์œผ๋กœ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค. ์ฆ‰, ์ด ํด๋ž˜์Šค๋Š” ๋˜‘๊ฐ™์€ ์—ฐ์‚ฐ์„ ๋‘ ๋ฒˆ ์ˆ˜ํ–‰ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

MAX_TICK_TIME = 1
MAX_STACK_DEPTH = 100
DO_RUNTIME_TYPE_CHECK = true
Sodacore = {}
Sodacore.Commands = {}
---@alias DataType
---| "string"

Keybase proof

I hereby claim:

  • I am nulta on github.
  • I am nulta (https://keybase.io/nulta) on keybase.
  • I have a public key ASC-Bsj32CFgEM_PTFgBshIBHFzSJ9RgnlGACZMNB8i9lgo

To claim this, I am signing this object: