Skip to content

Instantly share code, notes, and snippets.

View laike9m's full-sized avatar
🧠
🐍

laike9m laike9m

🧠
🐍
View GitHub Profile
@laike9m
laike9m / code.java
Last active September 15, 2023 09:34
Mili - sustain++; (ending ver.) / Ghost In The Shell: SAC_2045 Ending
/**
* The goal of this program is to obtain a HEALTHY
* and SUSTAINABLE relationship, darling.
*
* @author Cassie Wei from Mili
*/
public class sustainPlusPlus {
public static void main(String[] args) {
World world = new World();
Life me = new Ghost();
@laike9m
laike9m / detect_computed_gotos.py
Created May 31, 2020 23:55
Checks whether the current Python interpreter has computed gotos enabled
# This file is for detecting whether the current interpreter has enabled computed gotos.
# See https://stackoverflow.com/q/61860463/2142577 for details.
import sys
def global_tracer(frame, event_type, arg):
assert event_type == "call"
print(f"computed gotos enabled: {frame.f_back.f_lasti == 40}") # Win: 38, Mac, Linux: 40
class Solution {
public:
bool isLetter(char c) {
return c >= 'a' && c <= 'z';
}
string minRemoveToMakeValid(string s) {
stack<pair<char, int>> sta;
string ans = "";
string buffer;
pdm run pytest [23:39:33]
================================================================== test session starts ==================================================================
platform darwin -- Python 3.7.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /Users/laike9m/Dev/Python/pdir2
plugins: hypothesis-6.21.0, mypy-0.8.1
collected 0 items / 1 error
======================================================================== ERRORS =========================================================================
_____________________________________________________________ ERROR collecting test session _____________________________________________________________
__pypackages__/3.7/lib/_pytest/config/__init__.py:570: in _importconftest