Skip to content

Instantly share code, notes, and snippets.

View Densyakun's full-sized avatar

電車君 Densyakun

View GitHub Profile
@Densyakun
Densyakun / web-app-hello.json
Last active July 30, 2022 06:36
Kozmik IDE用Webアプリケーションデータ構造。Flaskを参考
{
"port": 5000,
"host": "0.0.0.0",
"routes": [
["/", "hello_world"]
],
"functions": {
"hello_world": {
"return": "<p>Hello, World!</p>"
}
[out:json];
(
way[highway][sidewalk][highway!=footway][highway!=cycleway][highway!=path][highway!=bridleway][highway!=track]({{bbox}});
);
out body;
>;
out skel qt;

C:\Users\{username}\Twitch

error: failed to run custom build command for `libffi-sys v2.0.0`

Caused by:
  process didn't exit successfully: `/tmp/cargo-installUFt4Xy/release/build/libffi-sys-53c659d17fb17ec3/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'assertion failed: `(left == right)`
    left: `PermissionDenied`,
   right: `NotFound`: can't remove the build directory: Operation not permitted (os error 1)', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/libffi-sys-2.0.0/build/not_msvc.rs:13:9
 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

アプリ

iOSでアプリのキャッシュを削除する方法

  • アプリで用意された方法でキャッシュを削除する
  • 「Appを削除」でアプリを削除し、App Storeからアプリを再インストールする
deno run https://gist.github.com/Densyakun/691841bbbf2bda3af27b2074009411c0/raw/c9a18720ba3b019a960d43d16587140abd79a5d1/test.ts
import * as test from "https://gist.github.com/Densyakun/691841bbbf2bda3af27b2074009411c0/raw/c9a18720ba3b019a960d43d16587140abd79a5d1/test.ts";

test;
@Densyakun
Densyakun / .md
Last active June 23, 2022 22:44
ISO 639-6 の置き換え
  • ISO 639-6 よりも ISO 639-3 の方が細かく分かれていることがある
  • ISO 639 よりも Glottolog の方が細かく分かれている
@Densyakun
Densyakun / .sh
Last active June 23, 2022 05:28
sudo apt install のみを複数使用する場合に、それを Bash を使って省略する
./apt-install.sh < install-drogon-ubuntu-18.04.txt

Kozmik IDE の思想

  • ソフトウェアの動作のために OS レベルの仮想化を行わない、システム要件を上げない

Kozmik IDE に Docker 用の支援機能を追加する案

  • Docker の環境構築を効率化
  • Docker Desktop のWebアプリを開発
  • → Docker はシステム要件が高い
@Densyakun
Densyakun / apt-install.sh
Last active July 30, 2022 06:17
Kozmik IDE
while read line
do sudo apt install $line
done