Ghostty + Zoxide + Yazi + Oh-My-Zsh 完整配置
- Ghostty - 现代化 GPU 加速终端模拟器
- Zoxide - 智能目录跳转工具(cd 的智能替代)
- Yazi - 快速终端文件管理器
- Oh-My-Zsh - Zsh 配置框架
Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations on LLM coding pitfalls.
These rules apply to every task in this project unless explicitly overridden. Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.
Don't assume. Don't hide confusion. Surface tradeoffs.
| #!/usr/bin/env bash | |
| # vim: ai ts=2 sw=2 et sts=2 ft=sh | |
| # Install or re-install phpenv with | |
| # multiple versions of PHP on macOS. | |
| # | |
| # Usage: | |
| # | |
| # curl -fsSL "https://git.io/JvG7i?cb=$RANDOM" | bash | |
| # |
Based on this article https://dev.to/halimsamy/wsl-for-developers-installing-the-android-sdk-53n9
sudo apt-get update| RequestQueue queue = Volley.newRequestQueue(context); | |
| //for POST requests, only the following line should be changed to | |
| StringRequest sr = new StringRequest(Request.Method.GET, "http://headers.jsontest.com/", | |
| new Response.Listener<String>() { | |
| @Override | |
| public void onResponse(String response) { | |
| Log.e("HttpClient", "success! response: " + response.toString()); | |
| } | |
| }, |
| import android.os.Bundle; | |
| import android.support.design.widget.AppBarLayout; | |
| import android.support.design.widget.TabLayout; | |
| import android.support.v4.widget.SwipeRefreshLayout; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.support.v7.widget.GridLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.Log; | |
| import com.blackcj.designsupportexample.adapters.RecyclerViewAdapter; |
| /** | |
| * 百度坐标(BD09)、国测局坐标(火星坐标,GCJ02)、和WGS84坐标系之间的转换的工具 | |
| * | |
| * 参考 https://github.com/wandergis/coordtransform 实现的Java版本 | |
| * @author geosmart | |
| */ | |
| public class CoordinateTransformUtil { | |
| static double x_pi = 3.14159265358979324 * 3000.0 / 180.0; | |
| // π | |
| static double pi = 3.1415926535897932384626; |