Skip to content

Instantly share code, notes, and snippets.

View jskyzero's full-sized avatar
🌸
「桜流し」Sakura Nagashi

jskyzero jskyzero

🌸
「桜流し」Sakura Nagashi
View GitHub Profile
@ninehills
ninehills / chatpdf-zh.ipynb
Last active April 9, 2024 06:40
ChatPDF-zh.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yubaoliu
yubaoliu / unity3D_git
Created October 16, 2017 00:40
Unity3D 项目用 git 做版本控制
新建项目后,在 Unity 编辑器里选择 Edit -> Project Settings -> Editor,在 Inspector 里面做以下设置:
Version Control - 设置为 Visible Meta Files,这样 .meta 文件就可以添加到版本控制中。
Asset Serialization - 设置为 Force Text,这样项目中像 prefab 和动画等文件会以纯文本格式保存,在看修改的 diff 时会比较好用。
建立 .gitignore 文件,在这里有一份可以直接拿来用的版本。其目的就是为了排除像Library 和 Temp 这些 Unity 可以本地生成的东西。之后 git init 来创建 git repo 就可以了。
建立 .gitattributes 文件。在 Windows 上默认 git 配置会自动将文本文件中的 \n(LF)转换成 \r\n(CRLF),但是 Unity 保存文本文件的时候总是使用的 \n。
这样有一个问题就是你修改了 .meta 文件以后就算再变回原来的设置,git 里面也会显示其被修改过了。因为 git 认为他是文本所以把里面的换行改成了 \r\n,
但是 Unity 保存资源的时候又写的是 \n,这样 git 又认为它变了。在项目根目录建立 .gitattributes 文件如下:
@ycmjason
ycmjason / README.md
Last active August 2, 2020 16:01
Gitbook automatic generation of SUMMARY.md

Gitbook automatic generation of SUMMARY.md

This script generates the SUMMARY.md assuming the following folder structure. Paths ending with / denotes directories. ** denotes multiply layers or directories.

  • ./ - gitbook root
  • ./*/ - parts, will be generated as # Name of the directory
  • ./**/*.md - articles
  • ./*/**/ - chapters

Name operations

@andreibosco
andreibosco / creative-cloud-disable.md
Last active January 3, 2024 02:37
disable creative cloud startup on mac
@qas612820704
qas612820704 / studenpackfree.md
Last active February 28, 2022 15:11
用學生信箱申請github提供的免費資源申請雲端主機(DigitalOcean+namecheap)

用學生信箱申請github提供的免費資源申請雲端主機(DigitalOcean+namecheap)

現在 github 有提出一系列對學生的優惠服務 詳情請點這裡

只要你是學生(擁有內含edu的信箱 ex:XXXXXX@mail.nchu.edu.tw)

如果你是學生又是黑客的話,就讓我們來申請吧!

Part I Get Student pack

@rxaviers
rxaviers / gist:7360908
Last active June 13, 2024 20:05
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: