Skip to content

Instantly share code, notes, and snippets.

View Kimeiga's full-sized avatar
💠
iwaw, iwnl

Hakan Alpay Kimeiga

💠
iwaw, iwnl
View GitHub Profile
@Kimeiga
Kimeiga / j_ergativity_rules.md
Created March 6, 2025 04:21
j_ergativity_rules.md

This classifier helps determine whether a Japanese verb is transitive or intransitive based on its ending. Follow these rules in order.

Primary Classification Rules (Covers ~85% of common verbs)

  1. If the verb ends in suTRANSITIVE
    • Examples: 壊す (kowasu), 直す (naosu), 返す (kaesu), 増やす (fuyasu)
    • This includes ALL verbs ending in asu, osu, esu, etc.
    • Intransitive counterpart typically ends in reru, ru, or eru
  2. If the verb ends in reruINTRANSITIVE
    • Examples: 壊れる (kowareru), 忘れる (wasureru), 生まれる (umareru)
@Kimeiga
Kimeiga / pubsub.md
Created February 19, 2025 18:04
pubsub in js

To implement an efficient PubSub (Publish-Subscribe) system in JavaScript, use a Map-based structure to manage subscribers. This approach ensures optimal performance for both subscribing/unsubscribing (O(1) complexity) and publishing (O(n) complexity, unavoidable). Here's the implementation:

Efficient PubSub Implementation

class PubSub {
  constructor() {
    this.events = new Map(); // Event -> Subscribers (Map: ID -> Callback)
  }

  subscribe(event, callback) {
@Kimeiga
Kimeiga / sarin.md
Created February 19, 2025 03:46
how come the tokyo sarin attack plans werent discovered by police before they happened?

The failure of Japanese authorities to discover the Tokyo sarin attack plans before they occurred can be attributed to a combination of institutional, legal, and cultural factors, as well as the covert tactics employed by the Aum Shinrikyo cult. Here’s a detailed analysis:


1. Institutional Underestimation and Delayed Investigations

Aum Shinrikyo had already conducted multiple violent acts prior to the 1995 attack, including the 1994 Matsumoto sarin attack (7 deaths) and the murder of a lawyer and his family in 1989. However, police investigations into these incidents were slow and fragmented, with authorities failing to connect them conclusively to Aum until after the Tokyo attack . Despite forensic evidence linking Aum to the Matsumoto attack (e.g., sarin traces near cult facilities), bureaucratic inertia and a lack of interagency coordination delayed decisive action .


2. Legal Barriers and Religious Protections

@Kimeiga
Kimeiga / nyc vs sf fiber.md
Created February 18, 2025 16:34
nyc vs sf fiber.md

The internet landscapes of San Francisco (SF) and New York City (NYC) reflect their distinct technological priorities and infrastructural challenges. Here’s a detailed comparison based on the latest trends and data:


1. Fiber Infrastructure

  • NYC:
    NYC has made significant strides in fiber-to-the-home (FTTH) deployment, with 76.5 million U.S. homes now passed by fiber nationally, and NYC leading in urban adoption due to competitive market dynamics and investments from providers like Verizon Fios . Fiber is prioritized for its reliability and capacity, with 65% of users considering it the best connectivity option . NYC’s dense urban environment supports widespread fiber deployment, and its startup ecosystem (ranked second globally) benefits from this infrastructure .

  • SF/Silicon Valley:
    While SF is part of the broader Bay Area fiber network, its focus has shifted toward capacity-driven fiber infrastructure to support data centers, AI, and machine learning applications . The

jujutsu (google)
sapling (meta, fork of hg)
git-branchless
stacked-git
git-stack
av (from aviator)
ghstack
graphite (paid) (i met the devs they are here in nyc)
stack-pr (from modular)

Sure, let's break down each line of the song "ストロベリーチップス" (Strawberry Chips) by HALCALI by meaning and word-by-word pronunciation and translation.


ストロベリーチップス tonight

  • ストロベリーチップス (Sutoroberī chippusu): Strawberry chips
  • tonight: tonight
    Meaning: Strawberry chips tonight

This file has been truncated, but you can view the full file.
{"!EXCLAMATION-POINT": [["EH", "K", "S", "K"], ["L", "AH"], ["M", "EY"], ["SH", "AH", "N"], ["P", "OY", "N", "T"]], "\"CLOSE-QUOTE": [["K", "L", "OW", "Z", "K"], ["W", "OW", "T"]], "\"DOUBLE-QUOTE": [["D", "AH"], ["B", "AH", "L", "K"], ["W", "OW", "T"]], "\"END-OF-QUOTE": [["EH", "N"], ["D", "AH", "V", "K"], ["W", "OW", "T"]], "\"END-QUOTE": [["EH", "N", "D", "K"], ["W", "OW", "T"]], "\"IN-QUOTES": [["IH", "N", "K"], ["W", "OW", "T", "S"]], "\"QUOTE": [["K", "W", "OW", "T"]], "\"UNQUOTE": [["AH", "N", "K"], ["W", "OW", "T"]], "#SHARP-SIGN": [["SH", "AA", "R", "P"], ["S", "AY", "N"]], "%PERCENT": [["P", "ER"], ["S", "EH", "N", "T"]], "&AMPERSAND": [["AE", "M"], ["P", "ER"], ["S", "AE", "N", "D"]], "'APOSTROPHE": [["AH"], ["P", "AA", "S", "T"], ["R", "AH"], ["F", "IY"]], "'BOUT": [["B", "AW", "T"]], "'CAUSE": [["K", "AH", "Z"]], "'COURSE": [["K", "AO", "R", "S"]], "'CUSE": [["K", "Y", "UW", "Z"]], "'EM": [["AH", "M"]], "'END-INNER-QUOTE": [["EH", "N"], ["D", "IH"], ["N", "ER", "K"], ["W", "OW", "T"]], "'END-QUO
@Kimeiga
Kimeiga / number-of-islands.md
Last active September 14, 2023 04:08
200. Number of Islands

200. Number of Islands

from collections import deque

class Solution:
  def numIslands(self, grid: List[List[str]]) -> int:
    # Return 0 if the grid is empty.
    if not grid:
      return 0
@Kimeiga
Kimeiga / ruumii_questions1.txt
Last active August 30, 2023 23:15
draft 1 of ruumii questions
const questions = [
{
type: 'text',
you: {
question: 'What is your name?',
id: 'name'
}
// autofill with name from google account
},
{
@Kimeiga
Kimeiga / test.md
Created February 21, 2023 21:41
test

image