Skip to content

Instantly share code, notes, and snippets.

View ilsubyeega's full-sized avatar

ilsubyeega

View GitHub Profile
function range(start, end) {
return Array.from({ length: end - start + 1 }, (_, i) => start + i);
}
function checkOverlap(square1, square2) {
const [x1, y1, r1] = square1;
const [x2, y2, r2] = square2;
const size1 = r1 * 2 + 1;
const size2 = r2 * 2 + 1;
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Logging;
<script lang="ts">
import { getContext } from 'svelte';
import type { ColorfulType, SizeType, RoundedType } from '$lib/constants.ts';
export let type: 'primary' | 'secondary' | 'text' = 'primary';
export let color: ColorfulType = getContext('color') as ColorfulType || 'blue';
export let size: SizeType = 'md';
export let href: string | undefined = undefined;
export let rounded: RoundedType = 'base';
</script>
$hues: (
"red": 0,
"pink": 336,
"purple": 270,
"indigo": 230,
"blue": 216,
"light-blue": 200,
"cyan": 180,
"teal": 160,
"green": 130,
import { existsSync } from 'fs'
import { mkdir, writeFile } from 'fs/promises'
(async () => {
const stickers = ['62b5df2be09d3ca567b1c5bc12d46b394aa3b1058c6e4d0ca41648b658eb247825c36c1ee35c7ffc5c2efed41a57c2c5d4a534bb2e458197e072eac5b11e5dfd55a49c0d31113dc10e44aa',
'62b5df2be09d3ca567b1c5bc12d46b394aa3b1058c6e4d0ca41648b651ee266e93cc918d6b74c054cd6e2abaa776f3e1ab115246edd216bf6cbffe3715ba2ea67d414631c33823']
stickers.forEach(async sticker_id => {
const detail = await fetch("https://gall.dcinside.com/dccon/package_detail", {
"headers": {
import os
import csv
import sys
def get_directories(path):
return [d for d in os.listdir(path) if os.path.isdir(os.path.join(path, d))]
def get_files_from_dir(path):
<script>
// percent: 0 ~ 1
const calculateDamping = (percent, from, to) => {
const formula = (t) => Math.pow(Math.E, -t) * Math.sin(2 * Math.PI * t)
const realPercent = percent * 4
const calculated = formula(realPercent)
return from * calculated + to * (1 - calculated)
}
window.currentInterval = null;
// ==UserScript==
// @name Report to Naver-Dark
// @namespace https://fmt.kr/
// @description Context menu to create issue to naver-dark repo from current page.
// @version 0.1
// @author ilsubyeega
// @include *
// @grant GM_openInTab
// @run-at context-menu
// ==/UserScript==]
$content = Get-Content .\Desktop\list.txt.txt
$content = $content.Trim()
foreach ($item in $content.Split("`n"))
{
if ($null -eq $item -or $item.Length -eq 0) { return }
$splitted = $item.Split("|")
$rule_name = $splitted[0].Trim()
$rule_location = $splitted[1].Trim()
New-NetFirewallRule -DisplayName $rule_name -Direction Inbound -Program $rule_location -Action Block
New-NetFirewallRule -DisplayName $rule_name -Direction Outbound -Program $rule_location -Action Block
Windows Registry Editor Version 5.00
; This file is a registry created for the use of FastForward in the NAVER Whale browser.
; Please check the address below if you want to check the related information.
; 이 파일은 NAVER Whale 브라우저에서 FastForward를 사용하기 위해 만들어진 레지스트리입니다.
; 관련 내용을 확인하시려면 아래 주소를 확인하시기 바랍니다.
; https://github.com/FastForwardTeam/releases#google-chrome-brave