Superseded by a larger gist, CodeFenceCleanup.
Here's expand.py
in that other
gist.
License: Like that one, this gist is likewise offered under CC0.
#!/usr/bin/env python3 | |
# From https://github.com/Charcoal-SE/SmokeDetector/blob/master/findspam.py | |
city_list = [ | |
"Agra", "Ajanta", "Almora", "Alwar", "Amritsar", "Andheri", | |
"Bangalore", "Banswarabhiwadi", "Bhilwara", "Bhimtal", "Bhiwandi", "Bhopal", | |
"Calcutta", "Calicut", "Chandigarh", | |
"Chennai", "Chittorgarh", "Coimbatore", "Colaba", | |
"Darjeeling", "Dehradun", "Dehrdun", "Delhi", "Durgapur", | |
"Ernakulam", "Faridabad", |
// SPDX-License-Identifier: 0BSD | |
/// <summary>A few fragments of a BST implementation.</summary> | |
public sealed class AltTreeMap<TKey, TValue> { | |
public AltTreeMap() : this(Comparer<TKey>.Default) { } | |
public AltTreeMap(IComparer<TKey> comparer) | |
=> Comparer = comparer; | |
public IComparer<TKey> Comparer { get; } |
// Copyright (c) 2020 Eliah Kagan | |
// | |
// Permission to use, copy, modify, and/or distribute this software for any | |
// purpose with or without fee is hereby granted. | |
// | |
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY | |
// SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION |
*.class |
cmake_minimum_required(VERSION 3.0.0) | |
project(fibonacci-memoized VERSION 0.1.0) | |
include(CTest) | |
enable_testing() | |
set(CMAKE_CXX_EXTENSIONS OFF) | |
set(CMAKE_CXX_STANDARD 17) | |
set(CMAKE_CXX_STANDARD_REQUIRED ON) |
Superseded by a larger gist, CodeFenceCleanup.
Here's expand.py
in that other
gist.
License: Like that one, this gist is likewise offered under CC0.
# Cached Python modules | |
__pycache__/ | |
# Output files | |
out[0-9] | |
# This branch has been rebased to not track .csv files. To keep it that way... | |
*.csv |
Copyright (c) 2020 Eliah Kagan <degeneracypressure@gmail.com> | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | |
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |
This gist is superseded by https://github.com/EliahKagan/SubtreeSearch.
Copyright (c) 2020 Eliah Kagan <degeneracypressure@gmail.com> | |
Permission to use, copy, modify, and/or distribute this software for any | |
purpose with or without fee is hereby granted. | |
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | |
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | |
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | |
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR |