Skip to content

Instantly share code, notes, and snippets.

View dora1998's full-sized avatar

Minoru Takeuchi dora1998

View GitHub Profile
$ npx envinfo
  System:
    OS: macOS 12.0.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 75.13 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.13.0 - ~/.anyenv/envs/nodenv/versions/16.13.0/bin/node
    Yarn: 1.22.17 - ~/.anyenv/envs/nodenv/versions/16.13.0/bin/yarn
version: '3'
services:
# HTTPS Reverse Proxy
https-portal:
image: steveltn/https-portal:1
container_name: minoru-dev-https-portal
ports:
- '80:80'
- '443:443'
@dora1998
dora1998 / smartex.gs
Last active December 7, 2019 19:47
Add events from emails sent from Smart-EX
function checkSmartExEmail() {
var searchQuery = "from:([email protected]) subject:(新幹線予約)";
var checkSpanMinute= 5; // 起動時間間隔
const regexpObj = /[\r\n]+.+[\r\n]+ ([0-9]+)([0-9]+)[\r\n]+(.+)\(([0-9]+:[0-9]+)\)(.+)(.+)\(([0-9]+:[0-9]+)\)[\s\S]+/m
var dt = new Date();
dt.setMinutes(dt.getMinutes() - checkSpanMinute);
var threads = GmailApp.search(searchQuery, 0, 5);
@dora1998
dora1998 / movix.gs
Last active December 7, 2019 19:47
メールからカレンダーに登録するやつ
function checkMovixEmail() {
var searchQuery = "from:([email protected]) subject:(チケット購入の確認)";
var checkSpanMinute= 5; // 起動時間間隔
const regexpObj = /[\s]+(.+)[\s]+(.+)[\s]+[\s]+(.+)[\s]+[\s]+([0-9]+\/[0-9]+\/[0-9]+).+[\s]+([0-9]+:[0-9]+)([0-9]+:[0-9]+)[\s\S]+login.do/m
var dt = new Date();
dt.setMinutes(dt.getMinutes() - checkSpanMinute);
var threads = GmailApp.search(searchQuery, 0, 5);
@dora1998
dora1998 / memo.md
Created May 13, 2019 10:57
React-LessonMemo-190513

redux

  • ducksパターンの方が良い

React-Redux

Presentation CとContainer C Container Cでreduxとconnectする

CSS設計

Reactだけならstyled-componentがベスト

@dora1998
dora1998 / InsertSort.c
Last active April 21, 2019 16:48
InsertSort Benchmark
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#define TIMES 10000
#define SIZE 1000
void printArray(int *list, int len)
{