Skip to content

Instantly share code, notes, and snippets.

View kamiazya's full-sized avatar

Yuki Yamazaki kamiazya

View GitHub Profile
@kamiazya
kamiazya / keybase.md
Created June 13, 2024 07:27
keybase.md

Keybase proof

I hereby claim:

  • I am kamiazya on github.
  • I am kamiazya (https://keybase.io/kamiazya) on keybase.
  • I have a public key ASDPp0nG5ktQexT-kAxRNgWCsTL0b3eKxd0rt4BMOrSEWAo

To claim this, I am signing this object:

// Even if you use a query, it will be imported.
import './fixture.query.ts?1';
// If the query is different, it will be loaded.
import './fixture.query.ts?2';
// If the query is the same, the cached result will be used.
import './fixture.query.ts?2';
import React, { FC } from "react";
import { ITable, INT, Database, VARCHAR, DATE, ENUM } from "./database";
export const CompanyDirectoryDatabase: FC = () => {
const tables: ITable[] = [
{
name: "departments",
columns: {
department_id: new INT({ length: 11, autoIncrement: true }, "事業部ID"),
name: new VARCHAR({ length: 100 }, "名前"),
<?php
interface DB {
public function findOne($query, $params);
public function findAll($query, $params);
}
interface Repositry {
public function getById(int $id);
}
@kamiazya
kamiazya / code.rb
Last active February 26, 2020 08:33
RSpec demo
a = gets.to_i
b,c = gets.chomp.split(" ").map(&:to_i)
s = gets.chomp
print("#{a + b + c} #{s}\n")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kamiazya
kamiazya / badges.md
Last active February 26, 2020 08:36

Badges

TypeDoc Plugin

typedoc-plugin-mermaid

NPM

  • Social
    • GitHub stars GitHub forks GitHub watchers GitHub watchers
  • Repository
// config/jest/add-custom-matchers.ts
import toBeValidDot from '../../test/unit/customMatchers/toBeValidDot';
expect.extend(toBeValidDot);
import { Injectable, InjectionToken, Injector } from 'injection-js';
type LifeCycleFunction = () => Promise<void>;
export const INITIALIZER = new InjectionToken<LifeCycleFunction>('application.life-cycle.initializer');
export const TERMINATOR = new InjectionToken<LifeCycleFunction>('application.life-cycle.TERMINATOR');
@Injectable()
export class Application {
constructor(private injector: Injector) {}
@kamiazya
kamiazya / car.ts
Last active February 26, 2020 08:36
abstract class Car {
protected buildId: string;
/**
* 製造番号
*/
public getBuildId(): string {
return this.buildId;
}