Skip to content

Instantly share code, notes, and snippets.

View ekardon's full-sized avatar

Mümin Bilal KILIÇOĞLU ekardon

  • İstanbul, Turkey
View GitHub Profile
@ekardon
ekardon / PyCharm_PowerShell_Fix.ps1
Last active November 18, 2022 07:59
Fix PowerShell not starting with automatically in Terminal tab.
# Rename the file to: Microsoft.PowerShell_profile.ps1
# Replace it under default PS profile folder: C:\Users\<your_username>Documents\WindowsPowerShell
function Test-JetBrains-Product {
# The following enviromental variables are created with venv Pycharm 2021.3. I haven't tested any other product.
return (Test-Path Env:IDEA_INITIAL_DIRECTORY) -And (Test-Path Env:__INTELLIJ_COMMAND_HISTFILE__)
}
function Get-JetBrains-Product {
@ekardon
ekardon / PyCharm Create React App.md
Created November 18, 2022 07:59
A setup to easily handle nodejs and venv

PyCharm Professional 2021.3

  • Create Project

New Project -> Pure Python I use the default values for the following parameters. If you change Virtual env or its location you will need to update some parts according to your changes. New encironment using "Virtualenv" Location: $PROJECT_DIR\venv Base interpreter: Python3.10

@ekardon
ekardon / array_of_unknown_length.schema.json
Created October 3, 2023 23:32
Json-schema array examples
{
"description": "First element of the array is integer type and the rest is string type. Array length is unknown",
"type": "array",
"items": [
{
"type": "integer"
}
],
"additionalItems": {
"type": "string"