[Shell] How to get the remote default branch in Git
--In the case of development using Git, there are cases where the process of acquiring the default branch name with shell or CI is described. --However, since the default name has been changed from
Make it easy to specify the time of AWS CloudWatch Events with CDK.
Since all of them fail, I decided to specify it in JST and convert it to UTC with CDK. # Define CloudWatch Events in CDK For the time being, only the definition of CloudWatch Events. Whatever you
[Python] Shooting game using pyxel
# Introduction This is my first time to make a game, so I made it based on the reference materials. # Video <blockquote class="twitter-tweet"><p lang="und" dir="ltr"><a href="https://t.co/cHNZ83v2x
Use Python to monitor Windows and Mac and collect information on the apps you are working on
# Introduction I hear that more and more people work at home, and many people are worried that they are all working at home properly. I think it's strange to be anxious in the first place, but I a
Data handling 1 Data formatting and file input / output
[Aidemy](https://aidemy.net/) 2020/10/11 # Introduction Hello, it is Yope! I am a liberal arts student, but I was interested in the possibilities of AI, so I went to the AI-specialized school "Aidemy
How to get the number of digits in Python
# Introduction How to get the number of digits. Casting the mold is a bit cumbersome but easy. [Addition] In the comment, I mentioned it because I was told how to do it smarter! # For integers Co
[GoLang] Set a space at the beginning of the comment
# 1.First of all Even if I googled, the solution (GoLand's official help) did not hit easily, so I wrote it. Personally, I sometimes forget about it when I installed GoLand on another PC, which is q
Nogizaka recognition program (using Yolov5) Table of contents
This article is just a table of contents. ## Table of contents (Yolov5) ⓵ System introduction https://qiita.com/asmg07/items/e3be94a3e0f0195c383b ⓶ Learning https://qiita.com/asmg07/items/01b429ad8
Data handling 3 (development) About data format
[Aidemy](https://aidemy.net/) 2020/10/ # Introduction Hello, it is Yope! I am a liberal arts student, but I was interested in the possibilities of AI, so I went to the AI-specialized school "Aidemy"
[Django] Convert QuerySet to dictionary type list
# Introduction I wanted to convert the data obtained from the model to a list with a QuerySet → dict element and do various things, but unexpectedly the information did not come out immediately, so I
Check if the configuration file is read in an easy-to-understand manner
After installing nodenv as a general user and passing it through the path When I was a little root and had a need ```bash [ec2-user@ip-xxx-xxx-xxx-xxx ~]$ sudo su [root@ip-xxx-xxx-xxx-xxx ec2-user
Use the vector learned by word2vec in the Embedding layer of LSTM
# Introduction I wanted to use the vector of word2vec in the embedding layer such as seq2seq, so I summarized the useful functions of word2vec. In the example, we will explain using the learned vecto
Moving Convolutional VAE code
# Introduction Tensorflow is now 2.0 and Keras has been integrated. Reference article [Tensorflow 2.0 with Keras](https://qiita.com/kotai2003/items/53ce4f902831f68b8152) As a result, the code of
Binary search in Python
The code for the binary search is below. ```python def binary_search(src, target_value): result = False lower_index = 0 higher_index = len(src)-1 while True: dst = src[lower
TensorBoard at http: // localhost: 6006 /
``` $ tensorboard --logdir ./ ``` And hit ``` TensorBoard 2.2.1 at http://localhost:6006/ (Press CTRL+C to quit) ``` Was output, When __tensorboard cannot be seen at `http: // localhost: 6006 /`
Unzip a lot of ZIP-compressed files with Linux commands to UTF8 and stick them together
I came across a group of files that seemed to be troublesome at first glance, but I was able to decompress all the files, convert them to UTF8, and combine them into one file more easily than I expec
[Python] Two-dimensional system point figure inside / outside problem
Click [here](https://qiita.com/ShotaSuzuki-jr/items/9757938c520c9ef067b6) for the idea # environment python3.7 # problem Calculate whether the __ <font color = "red"> point P </ font> __ in the fig
Scraping Go To Travel Accommodation
For a list of accommodations in [Go To Travel](https://goto.jata-net.or.jp/stay/) https://goto.jata-net.or.jp/assets/data/stay.csv Since there is csv data in, you can get it without scraping # De
I tried using "Solus OS" whose UI is too beautiful
 <Font color = gray> [Image Source](https://forum.level1techs.com/t/solus-gen
Solve HHKB2020 D --Squares by pushing
# Commentary Click here for a link to the problem. [HHKB2020 D - Squares](https://atcoder.jp/contests/hhkb2020/tasks/hhkb2020_d) ## Way of thinking (The blue square is called $ S_A $ and the red sq
[Beginner] [Python / Django] A fledgling web engineer tried a Django tutorial-Part 5-
# Introduction Nice to meet you, everyone. I'm going to publish a memorandum of the process of creating a voting (poll) application using Django. Since I am a beginner of Qiita, please understand
Wrap reading and writing of GCP to Secret Manager with google subcommands
# theme GCP has a [Secret Manager](https://cloud.google.com/secret-manager?hl=ja). If you know Kubernetes, you might think, "Is it something like [Secrets](https://kubernetes.io/ja/docs/concepts/con
How to run CNN in 1 system notation in Tensorflow 2
## Assumed reader --People who are trying to run CNN (convolutional NN) written in 1 system code in Tensorflow 2 environment ## Premise ### Execution environment * macOS High Sierra * Python 3.7.8 *
Easy way to plot HR diagram using astroquery
# HR diagram and astroquery Introducing a simple plot using the Hertzsprung-Russell diagram (commonly known as the HR diagram) using a space astronomical database called [astroquery](https://astroqu
A story I was addicted to trying to get a video url with tweepy
# Introduction The latest images and videos of actress Mayu Matsuoka are automatically sent every day. While creating a LINE Bot, I was addicted to trying to get the image / video URL from tweepy, so
Visualize claims with AI
# 0. point 1. 1. The scope of patent rights is expressed in words as claims. 2. Claims often have a complicated sentence structure because the description is strict, and may be misunderstood by some
I want to write an element to a file with numpy and check it.
# I get an unexpected error when combining arrays, and I want to write the elements to a file and check them, but it doesn't work because it is float by default. Export by specifying fmt = "% d" in
Convert PDF of list of Go To EAT member stores in Niigata prefecture to CSV
Convert the list of available stores (PDF) in [Niigata Go To Eat Campaign](https://niigata-gte.com/) to CSV ```shell #Download PDF wget https://niigata-gte.com/pdf/shop-list.pdf -O data.pdf apt ins
Rename based on file modification time (Linux)
# Rename based on file modification time ## command Assuming that `LOGFILE` contains the file name you want to rename ``` if [ -e $LOGFILE ]; then TIMESTAMP=$(date -r $LOGFILE "+%Y-%m-%d_%H_%M_
Add disks to extend LVM SWAP and / home area
## Thing you want to do Create a physical volume on the newly added disk (20GB) and expand the logical volume size of swap and / home by + 10GB. ## environment -Virtualization software: vmware work