This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import bpy | |
import json | |
import base64 | |
bl_info = { | |
"name": "json exporter", | |
"blender": (2, 80, 0), | |
"author": "Chien Tran", | |
"category": "Import-Export", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm init svelte | |
npm install -D express esbuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from 'express'; | |
import { handler } from './handler.js'; | |
const app = express(); | |
app.get('/healthcheck', (_, res) => res.send('ok')); | |
app.use(handler); | |
app.listen(3001); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { build } from 'esbuild'; | |
build({ | |
entryPoints: ['./index.js'], | |
bundle: true, | |
minify: true, | |
outfile: './build/index.js', | |
format: 'esm', | |
platform: 'node', | |
external: ['./handler.js'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"scripts": { | |
... | |
"dist": "npm run build && node esbuild.js", | |
... | |
}, | |
"type": "module" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
_ = { | |
author : 'chientrm', | |
title : 'TODO list with CF Worker', | |
description : 'This project is done via quick edit only', | |
year : '2022', | |
keywords : 'cloudflare, worker, quick, edit', | |
license : 'MIT', | |
}, | |
_________________________CONSTANTS_____________________________=_, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package site.chientrm.youwave.services.youwave | |
import com.google.firebase.auth.FirebaseAuth | |
import com.squareup.moshi.Moshi | |
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory | |
import kotlinx.coroutines.runBlocking | |
import kotlinx.coroutines.tasks.await | |
import okhttp3.OkHttpClient | |
import retrofit2.Retrofit | |
import retrofit2.converter.moshi.MoshiConverterFactory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scaffold( | |
snackbarHost = { SnackbarHost(snackbarHostState) }, | |
bottomBar = { | |
NavigationBar { | |
val navBackStackEntry by navController.currentBackStackEntryFlow.collectAsState(null) | |
val currentDestination = navBackStackEntry?.destination | |
NavigationBarItem( | |
selected = currentDestination?.route == Routes.HOME, | |
onClick = { | |
navController.navigate(Routes.HOME) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { array, object, string } from 'yup'; | |
import { validate } from './validate'; | |
import { Router, json, error } from 'itty-router'; | |
export default { | |
async fetch( | |
request: Request, | |
env: Env, | |
ctx: ExecutionContext, | |
): Promise<Response> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: https://twitter.com/calebporzio/status/1151876736931549185 | |
<div class="flex"> | |
<aside class="h-screen sticky top-0"> | |
// Fixed Sidebar | |
</aside> | |
<main> | |
// Content | |
</main> |
OlderNewer