Skip to content

Instantly share code, notes, and snippets.

Avatar

Kouji Nakashima kuc-arc-f

View GitHub Profile
@kuc-arc-f
kuc-arc-f / LibStorage.ts
Created Nov 19, 2022
sqlite, localStorage save
View LibStorage.ts
import LibConfig from '../lib/LibConfig';
import LibSqlite from '../lib/LibSqlite';
//
const LibStorage = {
/**
* save: db save
* @param
*
* @return
*/
@kuc-arc-f
kuc-arc-f / schema.prisma
Created Nov 5, 2022
SQLite 3 WASM , migration file
View schema.prisma
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
@kuc-arc-f
kuc-arc-f / test5_up.html
Created Nov 4, 2022
SQLite3 WASM/JS file read sample
View test5_up.html
<!DOCTYPE html>
<!-- SQLite3 WASM/JS file read sample -->
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>SQLite</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.6.2/sql-wasm.min.js"></script>
</head>
<body>
@kuc-arc-f
kuc-arc-f / test4_dl.html
Created Nov 4, 2022
SQLite3 WASM/JS download sample
View test4_dl.html
<!DOCTYPE html>
<!-- SQLite3 WASM/JS download sample -->
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>SQLite</title>
<meta name="description" content="Zenn" />
</head>
<body>
@kuc-arc-f
kuc-arc-f / test3.html
Created Nov 3, 2022
SQLite3 WASM/JS file load sample
View test3.html
<!DOCTYPE html>
<!-- SQLite3 WASM/JS file load sample -->
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>SQLite</title>
</head>
<body>
<h3>t3.html</h3>
@kuc-arc-f
kuc-arc-f / test2.html
Created Nov 3, 2022
SQLite3 WASM/JS sample
View test2.html
<!DOCTYPE html>
<!-- SQLite3 WASM/JS sample -->
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>SQLite</title>
<meta name="description" content="Zenn" />
</head>
<body>
@kuc-arc-f
kuc-arc-f / schema.prisma
Last active Oct 10, 2022
chat app, prisma migration
View schema.prisma
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
@kuc-arc-f
kuc-arc-f / sntp_example_main.c
Created Jun 24, 2017
esp32, SNTP sample UTC /JST time get process.
View sntp_example_main.c
/* LwIP SNTP example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <string.h>
#include <time.h>
@kuc-arc-f
kuc-arc-f / .env
Last active Aug 12, 2022
Next.js 12 で、Basic認証
View .env
NEXT_PUBLIC_USER=hoge
NEXT_PUBLIC_PASS=fuga
@kuc-arc-f
kuc-arc-f / PaginateBox.vue
Last active Jun 4, 2022
Vue 2 typescript + laravel 9, paginate sample
View PaginateBox.vue
<template>
<div class="">
<!--
<h3>PaginateChild</h3>
-->
<nav class="my-2">
<ul class="pagination">
<li class="page-item">
<a @click="first" class="page-link" href="#">&laquo;</a>
</li>