Skip to content

Instantly share code, notes, and snippets.

View tanarurkerem's full-sized avatar

István Palócz tanarurkerem

View GitHub Profile
@tanarurkerem
tanarurkerem / docker-compose.yml
Created September 7, 2023 03:09
Minimal docker-compose.yml for developing node.js frontend (React, Vue, etc.) project
# How to use
#
# Copy this file to your project root and run the following command:
#
# docker compose up
#
# Run command inside a container:
#
# docker compose run app [your command here]
#
class Animal:
def __init__(self):
self.firstname = 'maci'
self.lastname = 'laci'
self.fullname = self.firstname + self.lastname
def __setattr__(self, __name: str, __value: any) -> None:
super().__setattr__(__name, __value)
try:
if __name == 'firstname' or __name == 'lastname':
diff --git a/.htaccess b/.htaccess
index 7ccb6a2..f6aaa6e 100644
--- a/.htaccess
+++ b/.htaccess
@@ -96,8 +96,8 @@ DirectoryIndex index.php index.html index.htm
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# uncomment the following:
- # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
- # RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]