See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
| using System; | |
| using System.Collections.Generic; | |
| using System.Reflection; | |
| using System.Text; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| #if UNITY_2021_2_OR_NEWER | |
| using PrefabStage = UnityEditor.SceneManagement.PrefabStage; | |
| using PrefabStageUtility = UnityEditor.SceneManagement.PrefabStageUtility; |
| Shader "Pristine Grid" | |
| { | |
| Properties | |
| { | |
| [Toggle] _WorldUV ("Use World Space UV", Float) = 1.0 | |
| _GridScale ("Grid Scale", Float) = 1.0 | |
| _LineWidthX ("Line Width X", Range(0,1.0)) = 0.01 | |
| _LineWidthY ("Line Width Y", Range(0,1.0)) = 0.01 |
See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
| import os | |
| import time | |
| import re | |
| import subprocess | |
| from watchdog.observers import Observer | |
| from watchdog.events import FileSystemEventHandler | |
| def get_relative_path(path): | |
| return os.path.relpath(path) |
| #!/usr/bin/python2 | |
| import sys, PIL.Image | |
| img = PIL.Image.open(sys.argv[-1]).convert('L') | |
| threshold = 128*[0] + 128*[255] | |
| for y in range(img.size[1]): | |
| for x in range(img.size[0]): |
| FROM python:3.6-slim | |
| ARG UID | |
| ARG GID | |
| RUN groupadd -g "${GID}" app \ | |
| && useradd --create-home --no-log-init -u "${UID}" -g "${GID}" app | |
| RUN apt-get update && \ | |
| apt-get -y install python3-pip && \ |
| using UnityEngine; | |
| using System.IO; | |
| public class ScreenShotter : MonoBehaviour | |
| { | |
| [Header("Filename Settings")] | |
| [SerializeField, Tooltip("Set the destination path. This folder will be placed at the top of your project directory.")] | |
| string fileDestination = "Screenshots/"; |
Made this example to show how to use Next.js router for a 100% SPA (no JS server) app.
You use Next.js router like normally, but don't define getStaticProps and such. Instead you do client-only fetching with swr, react-query, or similar methods.
You can generate HTML fallback for the page if there's something meaningful to show before you "know" the params. (Remember, HTML is static, so it can't respond to dynamic query. But it can be different per route.)
Don't like Next? Here's how to do the same in Gatsby.
| """ | |
| MIT License | |
| Copyright (c) 2023 David Buchanan | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is |