This file contains hidden or 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
| #!/bin/bash | |
| # Ensure DIR is set | |
| if [ -z "$1" ]; then | |
| echo "Error: No directory path provided." | |
| exit 1 | |
| fi | |
| TARGET_PATH="$1" |
This file contains hidden or 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 Head from 'next/head' | |
| import React from 'react'; | |
| const StaggeredGrid = () => { | |
| const items = Array(8).fill(null); | |
| return ( | |
| <div className="w-full max-w-6xl mx-auto"> | |
| <div className="grid grid-cols-4 gap-10"> |
This file contains hidden or 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 'package:flutter/material.dart'; | |
| import 'package:google_fonts/google_fonts.dart'; | |
| /// ui design from: https://x.com/vgruev/status/1833163266974961999 | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({super.key}); |
This file contains hidden or 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 androidx.compose.material3.SnackbarDuration | |
| import androidx.compose.material3.SnackbarHostState | |
| import androidx.compose.material3.SnackbarResult | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.CompositionLocalProvider | |
| import androidx.compose.runtime.DisposableEffect | |
| import androidx.compose.runtime.Immutable | |
| import androidx.compose.runtime.ReadOnlyComposable | |
| import androidx.compose.runtime.remember | |
| import androidx.compose.runtime.rememberCoroutineScope |
This file contains hidden or 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
| #!/bin/bash | |
| for f in "$@" | |
| do | |
| # 获取文件类型,以确保是 Zip 压缩文件 | |
| fileType=$(file -bI "$f") | |
| echo "fileType= $fileType" | |
| if [[ $fileType =~ application/zip.* ]]; then | |
| # 删除 __MACOSX 与 .DS_Store 文件 | |
| zip -d "$f" \*__MACOSX\* || true |
This file contains hidden or 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 androidx.compose.ui.tooling.preview.Preview | |
| import androidx.compose.ui.graphics.drawscope.* | |
| import androidx.compose.animation.core.* | |
| import androidx.compose.foundation.* | |
| import androidx.compose.foundation.gestures.* | |
| import androidx.compose.foundation.interaction.* | |
| import androidx.compose.foundation.layout.* | |
| import androidx.compose.foundation.lazy.* | |
| import androidx.compose.foundation.lazy.grid.* | |
| import androidx.compose.foundation.shape.* |
This file contains hidden or 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 androidx.compose.foundation.background | |
| import androidx.compose.foundation.layout.* | |
| import androidx.compose.foundation.shape.CircleShape | |
| import androidx.compose.foundation.shape.GenericShape | |
| import androidx.compose.foundation.shape.RoundedCornerShape | |
| import androidx.compose.material.* | |
| import androidx.compose.runtime.Composable | |
| import androidx.compose.runtime.MutableState |
This file contains hidden or 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
| mod utils_log; | |
| fn main() { | |
| utils_log::log("hello world"); | |
| } |
This file contains hidden or 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
| 参考博客:https://www.cnblogs.com/echohye/p/17580078.html | |
| 1. 下载源码 | |
| version=3.8.3 | |
| wget http://download.osgeo.org/gdal/$version/gdal-$version.tar.xz | |
| 2. 编译。解压,执行: | |
| cmake -S . -B build \ | |
| -DCMAKE_INSTALL_RPATH=/opt/gdal \ |
NewerOlder