Linux commands that you often forget
Updated from time to time # How to find a file Do not search with/etc., go to the place where the file you want to search will be included (even recursively) ```bash find . -name "*.log" ``` And
Memorize Python commentary 3 --Numbers
`print(-2.0987) print(3 + 4.5) print(3 * (4 + 5))` `# modulates operator? Modulo operator: returns the remainder of a division. print(10 % 3) # 10 divided by 3. that's going to be 3 with a remainder
Memorize Python commentary 4 --Input
Getting input `name = input("Enter your name: ") age = input("Enter your age: ") print("Hello " + name + "! You are " + age)` Calc `# Python is just going to convert it into a string by default. nu
[Python] I tried using OpenPose
# Introduction I didn't use this article because it was a discussion about using Openpose when I did it in the image hackathon I experienced, so I wanted to study it. In addition, I performed face r
Create a Kubernetes Operator in Python
# Overview Kubernetes Operator is a convenient feature that allows you to automate and extend Kubernetes functionality through Custom Resources. The main language used to create Operators is go, but
Memorize Python commentary 2 --Strings
`print("Giraffe\nAcademy") # new line print("Giraffe\"Academy") # escape sequence print("Giraffe\\Academy")` `phrase = "Giraffe Academy" print("\n\n" + phrase) # appending another strings is conca
There is Linux.
Today I'm going to write about some Linux. [Linux Advent Calendar 2020](https://qiita.com/advent-calendar/2020/linux "Linux Advent Calendar 2020") It is the 21st day. Somehow I wasn't feeling well
I made a library that adds docstring to a Python stub file.
Recently, there have been cases where Python stub files are used for work. However, mypy's stub file generation command does not add docstring to the stub file, so I made a library to add it myself,
Create a simple Python development environment with VS Code and Docker
## Introduction When developing with Python running on Docker with VS Code, create a simple development environment that will complete the code properly. ### Preparation Install VS Code Docker and
Solve AtCoder ABC 186 with Python
This is an article for beginners who wishes to solve the D problem. This time, I was able to solve the three questions A, B, and C relatively quickly, but I stumbled on D. A The answer is too muc
This and that for using Step Functions with CDK + Python
This article is the 23rd day article of [CyberAgent Developers Advent Calendar 2020](https://adventar.org/calendars/5711). # What is a CDK? CDK is a wrapper library for CloudFormation API that all
How to access data with object ['key'] for your own Python class
How to implement the title, do you think of it? You may be wondering what it is used for in the first place. In my case, I have a column-oriented library that can manipulate data with exactly the s
3. Natural language processing with Python 3-3. A year of corona looking back at TF-IDF
We will look back on the past year by TF-IDF analysis for news articles related to the new coronavirus. # ** ⑴ Document creation ** ### ** 1. Data source ** * I used [Multilingual information trans
What to do when you can't bind CaboCha to Python
# environment Ubuntu 20.04 LTS pyenv 1.2.8 Python 3.7.3 CaboCha 0.60 * For those who can run CaboCha directly from the command line, but only binding to python does not work. # Error encountered ```
intel Python was too fast (under certain conditions)
# In conclusion, sciktlearn is much faster. Looking at SystemMonitor, it doesn't mean that it uses all the CPU cores as some rumors say, but it seems that code optimization saves unnecessary proces
Try using the services that support serverless development that appeared in 2020 (CDK Pipelines / CodeArtifact / CodeGuru for Python)
This article is the 20th day post of Serverless Advent Calendar 2020. This time, we will introduce the services that appeared in 2020 that mainly support the development of serverless applications u
Python de symmetric group 3
Said thing: [Python de symmetric group --Qiita](https://qiita.com/Krypf/items/615706d48f7475cb25a8) [Python de Symmetric Group 2-Qiita](https://qiita.com/Krypf/items/5929bfe1980e7f4dcf0a) import
Retry post request using python requests
I've been addicted to it, so I made a memo for the memorial service. When using the requests module of python, if you want to implement retry processing, you can use Retry of urllib3.util. When s
[Python] Cumulative sum ABC186D
[ABC186D](https://atcoder.jp/contests/abc186/tasks/abc186_d) Sort the input$A_1\leq\ldots\leq A_N$It is good as. At this time$i<j$Against$|A_i-A_j| = A_j-A_i$And you can simplify the calculation.
[Cloudian # 8] Try setting the bucket versioning with Python (boto3)
## Introduction [Cloudian](https://cloudian.com/) is fully compatible with S3, so it's convenient to use the AWS SDK! [Last time](https://qiita.com/yamahiro/items/350b6b31e0a3ea8d16ff) tried deleti
Python code acceleration approach
# Introduction Hello. Good evening. My name is Tameoka. I have been working as a machine learning engineer at Globis Co., Ltd. since April 2020. At Globis, I am in charge of projects that use mach
[Cloudian # 9] Try to display the metadata of the object in Python (boto3)
## Introduction [Cloudian](https://cloudian.com/) is fully compatible with S3, so it's convenient to use the AWS SDK! [Last time](https://qiita.com/yamahiro/items/395437a72df179786b0c) tried to set
CRLF becomes LF when reading a Python file
LF, CR, CRLF are mixed in the received text file, When you need to replace CRLF with CR. I will leave it as a memorandum because it did not come out even if I googled other than. Python3.7 #
WSL2-Linux on Windows- (Part 2: Introduce basic tools)
This article is a continuation of: [WSL2 ~ Linux on Windows ~ (Part 1: Introduction)](https://qiita.com/ka2taka/items/521c595ba045dd98d9f7) # 1.First of all ### Summary of this article In the firs
(Python Selenium) I want to check the settings of the download destination of WebDriver
## Check the settings for downloading the WebDriver To check the download destination folder of the launched WebDriver, access chrome: // settings and check the download destination description. (**
[Cloudian # 10] Try to generate a signed URL for object publishing in Python (boto3)
## Introduction [Cloudian](https://cloudian.com/) is fully compatible with S3, so it's convenient to use the AWS SDK! [Last time](https://qiita.com/yamahiro/items/3c364a603037a2d8d9a5) tried to dis
Web scraping with Python ② (Actually scraping stock sites)
# 0. Introduction This is a continuation of the second summary article ** that I investigated for the purpose of using python for investment utilization. This time I will actually try scraping * P
[Personal notes] Python, Django
Memo ## Project creation ``` $django-admin startproject project name ``` When you create a project, the same directory as the project name is created. Files used throughout the project are saved he
[Python] How to import the library
# What is a Python module? A function or class once created is divided into files for reuse. Each `.py` file is called __module__ or __library__. In Python, the module name is the part of the file
Makes you think that Python regular expressions are great
When I'm knocking 100 language processes, I've learned something new about `re` when expressing regular expressions, so I'll summarize it here. ## Difference between search and match * search matc