Skip to content

Instantly share code, notes, and snippets.

View takuya-nakayasu's full-sized avatar

TAKUYA NAKAYASU takuya-nakayasu

View GitHub Profile
@takuya-nakayasu
takuya-nakayasu / download_d-card.py
Last active February 11, 2023 16:31
ドコモのクレジットカード(Dカード)の利用明細をダウンロードするコード
import time
from selenium import webdriver
import chromedriver_binary
from d_credentials import *
# ユーザIDとパスワードを別ファイルから取得する
user_id = ID
password = PASS
# Chromeを起動
@takuya-nakayasu
takuya-nakayasu / ng_if.ts
Created December 15, 2020 10:33
ng_if.ts
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef, ɵstringify as stringify} from '@angular/core';
@takuya-nakayasu
takuya-nakayasu / string.validator.spec.ts
Last active December 3, 2020 08:24
サロゲートペア
import { Component, OnInit } from '@angular/core';
/**
* This is unit test code for StringValidator using karma.
*/
import { ComponentFixture, TestBed } from '@angular/core/testing';
import {
FormBuilder,
FormGroup,
FormsModule,
ReactiveFormsModule
@takuya-nakayasu
takuya-nakayasu / login.page.html
Last active October 31, 2020 09:55
「SpeedWeight」のログイン画面
<ion-header>
<ion-toolbar>
<ion-title></ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-card>
<ion-card-header>
<ion-card-title class="card-title">ログイン</ion-card-title>
@takuya-nakayasu
takuya-nakayasu / privacy-policy.page.html
Last active October 31, 2020 09:49
「SpeedWeight」のプライバシーポリシー
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button></ion-back-button>
</ion-buttons>
<ion-title>プライバシーポリシー</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
@takuya-nakayasu
takuya-nakayasu / terms-of-service.page.html
Created October 31, 2020 09:48
「SpeedWeight」の利用規約
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-back-button></ion-back-button>
</ion-buttons>
<ion-title>利用規約</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
@takuya-nakayasu
takuya-nakayasu / spinner-interceptor.ts
Created September 22, 2019 08:49
スピナーの表示・非表示を制御するインターセプター
import { Injectable } from '@angular/core';
import {
HttpEvent,
HttpInterceptor,
HttpHandler,
HttpRequest
} from '@angular/common/http';
import { Observable } from 'rxjs';
import { finalize } from 'rxjs/operators';
import { SpinnerService } from './spinner.service';
@takuya-nakayasu
takuya-nakayasu / spinner.service.ts
Created September 22, 2019 08:48
スピナーのサービスクラス
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';
/**
* スピナーの表示を制御するサービス
*
* @export
* @class SpinnerService
*/
@Injectable()
@takuya-nakayasu
takuya-nakayasu / spinner.component.html
Created September 22, 2019 08:11
スピナーコンポーネントクラスのテンプレートファイル
<div *ngIf="isLoading | async" class="overlay">
<mat-progress-spinner class="spinner" [color]="color" [mode]="mode" [value]="value"></mat-progress-spinner>
</div>
@takuya-nakayasu
takuya-nakayasu / spinner.component.scss
Created September 22, 2019 08:10
スピナーコンポーネントクラスのSCSSファイル
.overlay {
position: fixed;
display: block;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: rgba(74, 74, 74, .4);
z-index: 99999;
}