Skip to content

Instantly share code, notes, and snippets.

View Zeta611's full-sized avatar
๐ŸŽฏ
Focusing

Jay Lee Zeta611

๐ŸŽฏ
Focusing
View GitHub Profile
@Zeta611
Zeta611 / center-div.js
Created June 4, 2025 10:09
Center the body of neck-twisting web pages ๐Ÿคฆ
function(){
var css = 'html,body{display:flex!important;justify-content:center!important;align-items:center!important;min-height:100vh!important;}body>*{max-width:100% !important;}';
var s = document.createElement('style');
s.textContent = css;
document.head.appendChild(s);
})()
@crabdancing
crabdancing / quick-nix-repl-tutorial.md
Last active December 21, 2024 19:45
a quick nix repl tutorial

If you want to probe a nix flake and figure out what it exposes, I typically just load it into nix repl and then tab complete around until I find what I'm looking for. E.g.:

$ nix repl
Welcome to Nix 2.18.5. Type :? for help.

nix-repl> :lf github:wez/wezterm/main?dir=nix
Added 12 variables.
@MattHeffNT
MattHeffNT / relativeNumberOverLeaf.user.js
Last active June 4, 2025 09:59
enable relative line numbers in overleaf - tamper monkey
// ==UserScript==
// @name enable relative line numbers in overleaf
// @namespace http://tampermonkey.net/
// @version 2024-04-10
// @description handy for vim users. Change code view line numbers to relative.
// @author You
// @match https://www.overleaf.com/project/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=overleaf.com
// @grant GM_addStyle
// ==/UserScript==
@pynappo
pynappo / neovim-lsp-explainer.md
Last active October 21, 2024 00:07
A chart describing neovim lsp vs coc
%%{init: {"flowchart": {"htmlLabels": false}} }%%
flowchart LR
  subgraph LSP
    subgraph lsp.install [Install language servers]
      subgraph mason-pkg [Local to neovim]
        mason.nvim
      end
      system-pkg["System
      package managers"]
@Pusnow
Pusnow / CS ๋ถ„์•ผ ์šฐ์ˆ˜ ํ•™์ˆ ๋Œ€ํšŒ ๋ชฉ๋ก.csv
Last active June 4, 2025 04:06
CS ๋ถ„์•ผ ์šฐ์ˆ˜ ํ•™์ˆ ๋Œ€ํšŒ ๋ชฉ๋ก
์•ฝ์ž ํ•œ๊ตญ์ •๋ณด๊ณผํ•™ํšŒ (2024) BK21ํ”Œ๋Ÿฌ์Šค IF (2018) KAIST CS (2022) SNU CSE (2024.4) POSTECH CSE (2024.9) ํ‰๊ท  (์ •๊ทœํ™”) ํ•™ํšŒ๋ช… DBLP Key
AAAI ์ตœ์šฐ์ˆ˜ 4 O O ์ตœ์šฐ์ˆ˜ 1.00 AAAI Conference on Artificial Intelligence (AAAI) conf/aaai
AAMAS ์šฐ์ˆ˜ 2 0.20 International Conference on Autonomous Agents and Multiagent Systems (AAMAS) conf/ifaamas
ACCV ์šฐ์ˆ˜ 1 ์šฐ์ˆ˜ 0.25 Asian Conference on Computer Vision (ACCV) conf/accv
ACL ์ตœ์šฐ์ˆ˜ 4 O O ์ตœ์šฐ์ˆ˜ 1.00 Annual Meeting of the Association for Computational Linguistics (ACL) conf/acl
ACL Findings ์šฐ์ˆ˜ ์šฐ์ˆ˜ 0.20 Findings of ACL series/findacl
ACNS ์šฐ์ˆ˜ 0.10 International Conference on Applied Cryptography and Network Security (ACNS) conf/acns
ACSAC ์šฐ์ˆ˜ 2 ์šฐ์ˆ˜ 0.30 Annual Computer Security Applications Conference (ACSAC) conf/acsac
AIED ์šฐ์ˆ˜ 0.10 International Conference on Artificial Intelligence in Education (AIED) conf/aied
AISTATS ์šฐ์ˆ˜ 1 ์šฐ์ˆ˜ 0.25 International Conference on Artificial Intelligence and Statistics (AISTATS) conf/aistats
@Zeta611
Zeta611 / Zcombinator.swift
Created August 9, 2022 12:53
[Fixed-point combinator in Swift] Fixed-point combinator (Z combinator) in Swift. Y combinator is not available, as Swift is a strict language. #demo
struct Fix<T> {
let x: (Fix<T>) -> T
}
func fix<T, U>(f: @escaping (@escaping (T) -> U) -> ((T) -> U)) -> (T) -> U {
{ _fix in
f { (_fix.x(_fix))($0) }
}(
Fix { _fix in
f { (_fix.x(_fix))($0) }
@norswap
norswap / Parser.java
Last active February 26, 2022 13:45
Simple Handwritten JSON Recognizer
// Code for lecture [5. Writing Parsers by Hand]
// https://www.youtube.com/watch?v=Ytq0GQdnChg&list=PLOech0kWpH8-njQpmSNGSiQBPUvl8v3IM&index=5
import java.util.Scanner;
public final class Parser
{
// === SETUP ===================================================================================
private static final String EXAMPLE_INPUT =
@claudio-naoto
claudio-naoto / demo-en.saty
Created January 5, 2021 10:13
English translation of demo.saty
@require: stdjabook
@require: code
@require: itemize
@require: tabular
@require: proof
@import: local
document (|
title = {An outline of \SATySFi;};
author = {Takashi SUWA};
@magnusws
magnusws / SegmentedControlNavBar.swift
Last active June 28, 2023 12:32
Navigation bar with a segmented control in SwiftUI
//
// SegmentedControlNavBar.swift
//
// Navigation bar with a segmented control in SwiftUI.
//
// Created by Magnus W. Solbakken on 18/05/2020.
// Copyright ยฉ 2020 Magnus W. Solbakken.
//
import SwiftUI