Skip to content

Instantly share code, notes, and snippets.

View Zeta611's full-sized avatar
🎯
Focusing

Jay Lee Zeta611

🎯
Focusing
View GitHub Profile
@mjm
mjm / ManagedObjectChangesPublisher.swift
Created November 3, 2019 20:41
Observe changes to a Core Data fetch request with Combine
import Combine
import CoreData
extension NSManagedObjectContext {
func changesPublisher<Object: NSManagedObject>(for fetchRequest: NSFetchRequest<Object>)
-> ManagedObjectChangesPublisher<Object>
{
ManagedObjectChangesPublisher(fetchRequest: fetchRequest, context: self)
}
}
@JCSooHwanCho
JCSooHwanCho / FileIO.swift
Last active March 19, 2025 05:13
psν•  λ•Œ μž…λ ₯을 ν•œκΊΌλ²ˆμ— λ°›κΈ° μœ„ν•œ μœ ν‹Έλ¦¬ν‹° 클래슀. fread의 swift 버전.
import Foundation
final class FileIO {
private let buffer:[UInt8]
private var index: Int = 0
init(fileHandle: FileHandle = FileHandle.standardInput) {
buffer = Array(try! fileHandle.readToEnd()!)+[UInt8(0)] // 인덱슀 λ²”μœ„ λ„˜μ–΄κ°€λŠ” 것 λ°©μ§€
@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
@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};
@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 =
@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) }
@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
@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"]
@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==