Skip to content

Commit

Permalink
🪪 Updated header information.
Browse files Browse the repository at this point in the history
Dropped the 2024 date, because 2025 is approaching (2024 is the first year I started using this header).
  • Loading branch information
rentruewang committed Dec 26, 2024
1 parent 017d51d commit d98fd0e
Show file tree
Hide file tree
Showing 41 changed files with 62 additions and 41 deletions.
2 changes: 1 addition & 1 deletion cpp/automatic.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

auto main() -> int {
// https://stackoverflow.com/a/21369192
Expand Down
2 changes: 1 addition & 1 deletion cpp/c/copy.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <stdio.h>

Expand Down
2 changes: 1 addition & 1 deletion cpp/c/main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <math.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion cpp/c/radix-sort.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <assert.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion cpp/c/sorter.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <assert.h>
#include <stdlib.h>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include "calculator.hxx"
#include "calculator.hpp"

#include <fmt/core.h>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#pragma once

Expand Down
2 changes: 1 addition & 1 deletion cpp/classes.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion cpp/const.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

class const_member {
public:
Expand Down
2 changes: 1 addition & 1 deletion cpp/ctor.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <iostream>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion cpp/exceptions.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <iostream>
#include <string>
Expand Down
2 changes: 1 addition & 1 deletion cpp/init-stmt.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion cpp/modern.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <functional>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion cpp/namespace/ok.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion cpp/namespace/using-fail.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion cpp/parallel.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <algorithm>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion cpp/ptr-to-member.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion cpp/references.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion cpp/template.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <iostream>
using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion cpp/unique.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <iostream>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion cpp/variants.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <iostream>
#include <variant>
Expand Down
2 changes: 1 addition & 1 deletion cpp/virtual.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2024 RenChu Wang - All Rights Reserved
/// Copyright (c) RenChu Wang - All Rights Reserved

#include <iostream>
#include <memory>
Expand Down
2 changes: 1 addition & 1 deletion python/src/async.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

import asyncio

Expand Down
2 changes: 1 addition & 1 deletion python/src/attributes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved


class TestClass:
Expand Down
2 changes: 1 addition & 1 deletion python/src/call.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

import dataclasses as dcls
import functools
Expand Down
2 changes: 1 addition & 1 deletion python/src/data-classes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

import dataclasses as dcls

Expand Down
2 changes: 1 addition & 1 deletion python/src/inherit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

import abc
from abc import ABC
Expand Down
2 changes: 1 addition & 1 deletion python/src/matching.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

import dataclasses as dcls

Expand Down
21 changes: 21 additions & 0 deletions python/src/methods.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) RenChu Wang - All Rights Reserved

import typing
from abc import ABC, abstractmethod


class A(ABC):
@abstractmethod
def f(self, a):
pass


@typing.final
class B(A):
def f(self, a):
print(a)


@typing.final
class C(A):
g = f = lambda a: print(a)
2 changes: 1 addition & 1 deletion python/src/monkey.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

from types import MethodType

Expand Down
2 changes: 1 addition & 1 deletion python/src/patterns.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

from collections.abc import Sequence
from typing import Any
Expand Down
2 changes: 1 addition & 1 deletion python/src/proto-auto-methods.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

import abc
from typing import Protocol
Expand Down
2 changes: 1 addition & 1 deletion python/src/proto-inherit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

import abc
from typing import Protocol
Expand Down
2 changes: 1 addition & 1 deletion python/src/proto.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

import abc
import typing
Expand Down
2 changes: 1 addition & 1 deletion python/src/self.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

import abc
from collections.abc import Sequence
Expand Down
2 changes: 1 addition & 1 deletion python/src/sub.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

from typing import Any

Expand Down
2 changes: 1 addition & 1 deletion python/src/super.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved


class CoopFoo:
Expand Down
2 changes: 1 addition & 1 deletion python/src/threads.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

import time
from multiprocessing.pool import ThreadPool
Expand Down
2 changes: 1 addition & 1 deletion python/src/typing-info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

from collections.abc import Callable
from typing import ParamSpec, TypeVar
Expand Down
2 changes: 1 addition & 1 deletion python/src/unpacking.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved


class CustomIter:
Expand Down
2 changes: 1 addition & 1 deletion python/src/variance.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2024 RenChu Wang - All Rights Reserved
# Copyright (c) RenChu Wang - All Rights Reserved

from __future__ import annotations

Expand Down

0 comments on commit d98fd0e

Please sign in to comment.