Skip to content

Instantly share code, notes, and snippets.

@kuc-arc-f
kuc-arc-f / LibStorage.ts
Created November 19, 2022 05:10
sqlite, localStorage save
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 November 5, 2022 08:24
SQLite 3 WASM , migration file
// 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 November 4, 2022 06:30
SQLite3 WASM/JS file read sample
<!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 November 4, 2022 06:26
SQLite3 WASM/JS download sample
<!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 November 3, 2022 07:01
SQLite3 WASM/JS file load sample
<!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 November 3, 2022 06:57
SQLite3 WASM/JS sample
<!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 October 10, 2022 10:42
chat app, prisma migration
// 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 June 24, 2017 03:59
esp32, SNTP sample UTC /JST time get process.
/* 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 August 12, 2022 01:12
Next.js 12 で、Basic認証
NEXT_PUBLIC_USER=hoge
NEXT_PUBLIC_PASS=fuga
@kuc-arc-f
kuc-arc-f / PaginateBox.vue
Last active June 4, 2022 00:25
Vue 2 typescript + laravel 9, paginate sample
<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>