This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person: | |
def __init__(self,name,age): | |
self.name = name | |
self.age = age | |
def check_age(func): | |
def wrapper(person,*args,**kwargs): | |
if person.age < 18: | |
print(f'You can not enter the party {person.name} because you are younger than 18!') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
docker run --rm -it -v "$PWD"/app:/app -w /app node:16 npx create-react-app ./ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
import plotly.express as px | |
import plotly.graph_objects as go | |
geojson = requests.get( | |
"https://gist.githubusercontent.com/mebaysan/9be56dd1ca5659c0ff7ea5e2b5cf6479/raw/6d7a77d8a2892bd59f401eb87bd82d7f48642a58/turkey-geojson.json" | |
).json() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
server_name videomeet.app; | |
server_name_in_redirect off; | |
access_log /var/log/nginx/reverse-access.log; | |
error_log /var/log/nginx/reverse-error.log; | |
location / { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!pip install pymssql | |
!pip install pandas | |
!pip install numpy | |
import pandas as pd | |
import numpy as np | |
import pymssql | |
def create_server_map(CONN): | |
# create base connection to get all databases on server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo docker run \ | |
-v /home/mebaysan/Desktop/NorthwindDB.sqlite:/databases/NorthwindDB.sqlite \ | |
--net=host \ | |
--env SQLPAD_PORT=8000 \ | |
--env SQLPAD_USERPASS_AUTH_DISABLED="false" \ | |
--env SQLPAD_ADMIN="[email protected]" \ | |
--env SQLPAD_ADMIN_PASSWORD="123." \ | |
--env SQLPAD_CONNECTIONS__defaultcon__name="Nortwhind Conn" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name <DOMAIN> <AND / OR> <SERVER IP>; | |
location = /favicon.ico { access_log off; log_not_found off; } | |
location /static/ { | |
root /home/serverUsername/projectfolder/; | |
} | |
location /media/ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="board-of-directors"> | |
<h4>İhya Vakfı</h4> | |
<div class="bd-items"> | |
<div class="first title">{{ baskan.isim }}</div> | |
<div class="items first"> | |
{% for uye in baskan.uyeler.all %} | |
<div class="item"> | |
<div class="image"><img src="{{ uye.resim.url }}" alt=""/></div> | |
<div class="content"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
ÖRNEK BİR CUSTOM ACTION | |
""" | |
from typing import Any, Text, Dict, List | |
from rasa_sdk import Action, Tracker | |
from rasa_sdk.executor import CollectingDispatcher | |
import requests |