Skip to content

Instantly share code, notes, and snippets.

View potato4d's full-sized avatar
💭
It's not so easy to be consistent

Takuma HANATANI potato4d

💭
It's not so easy to be consistent
View GitHub Profile
<template>
<div class="oyasumi-result">
<div class="oyasumi-result_main">
<img src="@/assets/waku_up.gif" alt>
<div style="display: flex;align-items: stretch">
<img src="@/assets/waku_left.gif" alt>
<div class="oyasumi-result__message">
<p v-if="step">
{{questions.name}} {{titleList[questions.title-1]}}
</p>
import { promises as fs } from 'fs'
import { execSync } from 'child_process'
const camelToKebab = require('camel-to-kebab')
function getFileNames(scope: string, opt: string): string[] {
return execSync(`git ls-files ${scope} | grep ${opt}`)
.toString()
.split('\n')
.filter(v => v)
}
現在調整中ですが、来年度の目処に NestJS 日本語ドキュメントの翻訳を開始する予定です。
12/24 に募集を開始できるように準備を進めていましたが、もうしばらくかかりそうなので、春に開始することとしました。
今後ですが、本格的な募集が開始されたあとは、日本ユーザーグループ Discord の #translation チャンネルで進行する予定ですので、ご興味のあるかたは、こちらに入っておいていただけますと幸いです。
https://discord.gg/nB9MadZ
import Vue, { CreateElement, VNode } from 'vue'
import * as tsx from 'vue-tsx-support'
export const AppRequireAuth = tsx.component({
name: 'AppRequireAuth',
watch: {
async isInitializedAuth() {
const user = this.$auth.currentUser
if (user) {
try {
@potato4d
potato4d / jsx.d.ts
Created February 9, 2020 15:48
Vue で TSX
import Vue, { VNode } from 'vue'
declare global {
namespace JSX {
interface Element extends VNode {}
interface ElementClass extends Vue {}
// interface IntrinsicElements {
// [element: string]: any
// }
}
declare module 'vue-feather-icons' {
import Vue from 'vue'
type FeatherIconProps = {
size: string
}
type FeatherIconComponent = import('vue/types/vue').ExtendedVue<
Vue,
{},
{},
{},
import 'vue-tsx-support'
import { AllHTMLAttributes } from "vue-tsx-support/types/dom";
declare module "vue-tsx-support/types/base" {
type HTMLAttrs = Omit<AllHTMLAttributes, 'size'>
interface ComponentAdditionalAttrs extends HTMLAttrs {}
}
import admin from 'firebase-admin'
const credential: any = null // 書き換えてね
const app = admin.initializeApp({
credential: admin.credential.cert(credential),
})
const splitByCount = (n: number, arr: admin.auth.UserRecord[]) => {
return arr.reduce((before: admin.auth.UserRecord[][], now: admin.auth.UserRecord) => {
#include <SwitchControlLibrary.h>
void setup(){
// put your setup code here, to run once:
SwitchControlLibrary().PressButtonR();
delay(50);
SwitchControlLibrary().ReleaseButtonR();
delay(500);
SwitchControlLibrary().PressButtonL();
delay(50);
@potato4d
potato4d / cleaner.js
Last active December 24, 2023 14:32
The Google App script for clean up your Gmail Inbox
/**
* Gmail Cleaner v0.1.0
* publishedAt: 2020/10/25
* Author: @potato4d
* LICENSE: MIT
**/
// TODO: Customize
const target = [
'[email protected]',