python3.8 -m venv esrgan
cd esrgan
source bin/activate.fish
pip install torch torchvision
python -m pip install --upgrade pip setuptools
pip install realesrgan
This file contains 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
@doc """ | |
日時のタプルをメール日時形式でフォーマットする | |
### Example | |
``` | |
iex> {{2021, 4, 3}, {9, 46, 58}} |> Monitorbox.Server.V1.DeviceMessage.EmailParser.datetime_to_str | |
"Sat, 03 Apr 2021 09:46:58 +0900" | |
``` | |
""" |
This file contains 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
Name: openssl3.2 | |
Version: 3.2.0 | |
Release: 1%{?dist} | |
Summary: Utilities from the general purpose cryptography library with TLS implementation | |
License: Apache License v2.0 | |
URL: https://www.openssl.org/ | |
Source0: https://www.openssl.org/source/openssl-%{version}.tar.gz | |
BuildRequires: perl-IPC-Cmd |
This file contains 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
const range = (begin: number, end: number) => ([...Array(end - begin)].map((_, i) => (begin + i))) |
This file contains 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
defmodule Zip do | |
@moduledoc """ | |
Easy ZIP creator | |
you need to install zstream: | |
``` | |
{:zstream, "~> 0.6"} | |
``` | |
""" |
This file contains 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 React from 'react' | |
import { csrfToken } from '@rails/ujs' | |
export const AuthenticityToken = (): React.ReactElement => | |
<input type="hidden" name="authenticity_token" value={csrfToken() ?? ''} /> |
This file contains 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
@doc """ | |
テーブルをロックしコードを実行する | |
### Example | |
``` | |
iex> MyProject.Repo.lock_tables fn -> IO.puts "hello" end, users: :read | |
``` | |
""" | |
@spec lock_tables(fun, keyword(atom)) :: no_return |
This file contains 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 Bitwise | |
@doc """ | |
与えられた数値の指定されたビットの値を読み出す | |
### Example | |
``` | |
iex> bit_at(42, 3) | |
true |
This file contains 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
# frozen_string_literal: true | |
source "https://rubygems.org" | |
gem 'activesupport' |
This file contains 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 Main | |
require 'aws-sdk-appconfigdata' | |
def initialize(application:, environment:, profile:) | |
@application = application | |
@environment = environment | |
@profile = profile | |
@client = Aws::AppConfigData::Client.new( | |
region: 'ap-northeast-1', |
NewerOlder