Skip to content

Instantly share code, notes, and snippets.

@s
s / FeministOkumalar.txt
Last active April 23, 2025 13:54
Feminist Okumalar
https://twitter.com/burcuu_unlu/status/1645860252611498002?s=46
https://twitter.com/burcuu_unlu/status/1644737673221767169?s=46
https://twitter.com/iozguradem/status/1637909652653457420?s=46
https://twitter.com/melisulug/status/657122448828145664?s=46
https://twitter.com/melisulug/status/727157594536710144?s=46
https://twitter.com/melisulug/status/750669309265969152?s=46
https://twitter.com/melisulug/status/1020688262971756545?s=46
https://twitter.com/melisulug/status/1142111948353482757?s=46
https://twitter.com/sisterslab/status/1401949906479243265?s=46
https://twitter.com/sisterslab/status/1447621791682383874?s=46
@s
s / MinStack.java
Last active May 5, 2025 23:50
MinStack implementation
import java.lang.ref.WeakReference;
import java.util.Stack;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
//================================================================================
// WeakBox
// This class is a wrapper around any generic value to make it weak referenced to
// avoid memory leaks in certain situations where, say class A holds a strong ref
@s
s / LargestSquareArea.swift
Created July 3, 2020 00:39
This snippet finds the largest square area within a matrix with consisting of 1s.
import Foundation
import XCTest
typealias Matrix = [[Int]]
/// This function alias is used when a position is given:
/// And we'd like to check if we can go to a neighbor of it
/// And if we can go to the neighbor, what's the value of the neighbor
/// An example is usage:
/// ```
import Foundation
public extension TimeInterval {
/// `minuteSecondMS` is a convenience computed variable which converts a `TimeInterval` to `mm:ss:ms` format.
var minuteSecondMS: String {
return String(format: "%d:%02d.%03d", minute, second, millisecond)
}
/// `minute` is a convenience computed variable which converts a `TimeInterval` to minutes.
var minute: Int {
@s
s / .travis.yml
Created May 23, 2020 00:41 — forked from shaypal5/.travis.yml
Comprehensive Python testing on Travis CI
language: python
# ===== Linux ======
dist: xenial
python:
- 2.7
- 3.5
- 3.6
- 3.7
matrix:
include:
@s
s / HuffmanTree.java
Last active May 5, 2025 23:52
HuffmanTree.java
import java.util.Arrays;
/**
* class HuffmanTree
*/
public class HuffmanTree {
static int non_zero_element_count;