Linux commands
https://uxmilk.jp/8318
Expressing "the most beautiful mathematical formula in the world" programmatically
# Introduction $e^{iπ} = -1$ Is Euler's equation, which is said to be "the most beautiful mathematical formula in the world". It's certainly beautiful or lean, but I wanted to output this programma
Construction of Ceph (Octopus) (preparation software)
## __ Introduction __ As the title suggests, this article aims to build __ceph (octopus) __, which is the latest at the moment (2021.01). Also, since it also serves as a memorandum of the procedure
Is it possible to create an infinite length "non-repeating character string" with only three types of characters? [BFS] [DFS]
# Overview I thought about the question, "Can I make an infinitely long" non-repeating character string "with only three types of characters?" ("Repeat" is a unique definition of this problem, descri
[Go] Use Open ID Connect with go-oidc
Open ID Connect --There is a token issuance process in the evolved version of outh2 --Delegate to another provider (Google in this case) without having authentication information such as user passw
What is the fastest way to create a reverse dictionary in python?
TL;DR If you want to generate a python dict with the key and value reversed, the following is the fastest. ```python d = dict(zip(list('abc'), range(3))) #Generate a suitable dictionary as an examp
How to use Go.mod
If you are using GOPATH, you may get strange errors such as libraries that cannot be imported. I will mention it because it may be solved by using go.mod of GoModules. <h1> [Environment] </h1> win
Image normalization in TensorFlow
# About this article I used `rescale` when rescaling pixel values with` ImageDataGenerator` of keras, but I couldn't use it when I wanted to normalize in the range of [-1 ~ 1]. I will leave it.
use go module
## Enable with environment variables ``` go env -w GO111MODULE=on go env | grep MOD ``` ## Initialization process ``` go mod init test ``` go.mod has been created #### **`go.mod `** ```mod mo
What to do if grep: empty (sub) expression appears on Mac grep
--In many cases, you use a Mac to grep for work or hobbies to search or aggregate. --At that time, you may encounter the error as the title. ――Therefore, this time, I will record two points to be t
Use MeCab and neologd with Google Colab
# Conclusion Execute the following command. ```python !apt-get -q -y install sudo file mecab libmecab-dev mecab-ipadic-utf8 git curl python-mecab > /dev/null !git clone --depth 1 https://github.com/
A memo to create a virtual environment (venv) before Django
Create a web app using Django with python. ↑ For that purpose, first create a virtual environment. Easy 3 steps. # Procedure for creating a virtual environment The file name of this virtual enviro
Collect images by scraping. Make more videos!
# Overview Do you ever save personality images and character illustrations on your smartphone or computer? Just write the title of the image you want to collect, and we will publish the code that au
Push rejected, failed to compile Go app. Error when deploying Go to Heroku
# About the error I wanted to deploy the API made with Go to Heroku, `git push heroku main` I gave a command ``` ! Push rejected, failed to compile Go app. ! Push failed ``` Failed with th
Manim's method 17
# Overview I checked manim's method. I tried the exercise "multiplication table". # Referenced page. https://qiita.com/maskot1977/items/c01180cc63aa67ac004e # Sample code ``` from manimlib.impo
Investment quest: Make a system trade with pyhton (2)
## System trading in python: Draw Bollinger Bands ### What is Bollinger Bands? Bollinger Bands are often described in the graph below. From monex Securities HP. https://info.monex.co.jp/technical-an
Conveniently upload to kaggle Dataset
# kaggle notebook tied up code competition Recently, in kaggle, the number of code competitions that can only be used in kaggle's notebook environment at the time of inference has increased, and in c
Manim's method 15
# Overview I checked manim's method. Dot, I tried using it. # Sample code ``` from manimlib.imports import * class test(Scene): def construct(self): dots = dict() annos = dict() var_in
AWS Amplify + API Gateway + Lambda + Python returns a normal response
When I configured Lambda + API Gateway with AWS Amplify, I sometimes had a little trouble because I couldn't get a normal response even when I tried to execute the test. So, along with how to add API
Preparing python using vscode on ubuntu
Defense record after installing vscode. sudo apt install python-pip sudo apt install python3-pip Insert pylint after starting vscode Other extended functions ・ CodeRunner ・ Python for VScode ・ P
Manim's method 16
# Overview I checked manim's method. I tried using ShowIncreasingSubsets. # Sample code ``` from manimlib.imports import * class test(Scene): def construct(self): points = [] for x in rang
[Python] I want to make a 3D scatter plot of the epicenter with Cartopy + Matplotlib!
One of the features of [Matplotlib](https://matplotlib.org/) is that it is very easy to draw a 3D graph. Taking advantage of this feature, I tried to draw a 3D scatter plot of the epicenter with the
How to use "Jupyter Book" to create publication quality books and documents from .ipynb
# What is Jupyter Book? As the title suggests, ["Jupyter Book"](https://jupyterbook.org/intro.html) allows you to create beautiful publication-quality books and documents (HTML, PDF, etc.) from Jupy
Effortlessly write tests involving DB connections with DATA-DOG/go-txdb
# Tests including DB connection are difficult --You have to prepare test data for each test case. --You have to reset the DB change result so that it doesn't affect other test cases. --Cannot be e
Create a GO development environment with [Mac OS Big Sur]
I had to use GO, so I created an environment with Mac OS Big Sur. ## Contents --Installing goenv --go installation ## install goenv Initially, I would like to install with `brew install goenv`,
From python to running instance on google cloud platform
You have to make the authentication key first [Authenticate as a service account | Google Cloud](https://cloud.google.com/docs/authentication/production) [Using the Cloud Client Library for Pyth
[python] plot the values before and after the conversion of yeojohnson conversion
#### **`python`** ```python import numpy as np import pandas as pd #Copy the formula here # https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.yeojohnson.html def yeojohnson(lmbda, x)
Algorithm learned with Python 19th: Sorting (heapsort)
# #Algorithm learned in Python <Heapsort> ## Introduction Implement the basic algorithm in Python to deepen your understanding of the algorithm. Heapsort is handled as the 19th bullet. ## Heapsort
Linux [shell command]
# Introduction This will be a memo for learning. This time, we will learn frequently used shell commands (shortcut keys). # Move cursor |command|Contents |:------:|:------:| |Ctrl+f|Move to next
Super easy! Python + Flask environment in Docker quickly
At [Weekend Hackathon](https://twitter.com/hashtag/%E9%80%B1%E6%9C%AB%E3%83%8F%E3%83%83%E3%82%AB%E3%82%BD%E3%83%B3) I built a Python + Flask environment on Docker with the intention of creating a we