- A = [xA, yA] is a point on the 2D plane. Same for B, C, ...
- lengths are in any unit (ex: pixels)
- code snippets are in JavaScript
angleRad = angleDeg * Math.PI / 180;
// Fixes for Directus 9.9, 10 and up issues: | |
// Directus - An instant no-code App and dynamic API for any SQL database - https://github.com/directus | |
// | |
// Package subpath './server' is not defined by "exports" - Export issue after v9.22.3 #18700 | |
// https://github.com/directus/directus/issues/18700 | |
// Deploy error when using Passenger Server (Plesk) with Directus 9.0.0 #9613 | |
// https://github.com/directus/directus/issues/9613 | |
// | |
// Rerolled fix by github user stylefieber - https://github.com/stylefieber in issue #18307 | |
// to make it easier to find and deploy. Filtered deprecation warnings (for iisnode). |
void main() async { | |
WidgetsFlutterBinding.ensureInitialized(); | |
await Firebase.initializeApp( | |
options: DefaultFirebaseOptions.currentPlatform, | |
); | |
await NotificationService.instance.initialize(); | |
//YOUR OTHER CODE CAN COME IN HERE | |
runApp(const MyApp()); |
For typical use cases, I prefer using nvitop
to view detailed information. This script offers a dependency-free implementation.
The script enhances the functionality of nvidia-smi
and provides the following info:
Username
full process Command
GPU ID
PID
This is useful on multi-user servers and can be used to quickly identify which user is using the GPU and running what kind of program.
#define STOP_EXTRACTION_WHEN_WINDOW_CLOSED | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Reflection; | |
using System.Text; | |
using System.Threading; | |
using UnityEditor; |
""" | |
A micro event loop library implementation from scratch. | |
This library provides a minimal but feature-complete asynchronous event loop | |
implementation for educational purposes. It demonstrates the core concepts of | |
asynchronous programming including: | |
- Task scheduling and management | |
- I/O multiplexing with non-blocking sockets | |
- Timeouts and sleep functionality |
╭────────────────────────────────────────────╮ | |
│ ✻ Welcome to Claude Code research preview! │ | |
│ │ | |
│ /help for help │ | |
│ │ | |
│ cwd: /Users/v/vic/dev/IC │ | |
╰────────────────────────────────────────────╯ | |
! cat InteractionCalculus.md |
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles%\Microsoft Office\Office16
<!DOCTYPE html> | |
<html lang="zh-CN"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>笔记卡片生成器</title> | |
<!-- Tailwind CSS CDN --> | |
<script src="https://cdn.tailwindcss.com"></script> | |
<!-- HTML2Canvas 导出功能 --> | |
<script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script> |