{"id":20148872,"url":"https://github.com/dev-chenxing/learning-notes","last_synced_at":"2026-04-13T19:32:24.990Z","repository":{"id":233457690,"uuid":"786115696","full_name":"dev-chenxing/learning-notes","owner":"dev-chenxing","description":"📝 Programming Guide and Learning Notes, web scraping, frontend development, handheld gaming | 爬虫，网页前端，游戏机配置. Built with Jekyll","archived":false,"fork":false,"pushed_at":"2025-04-21T09:57:39.000Z","size":9666,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T10:51:13.385Z","etag":null,"topics":["css","html","javascript","jekyll","markdown","miyoo-mini-plus","notes","python","python-docx","scrapy","scss","web"],"latest_commit_sha":null,"homepage":"https://dev-chenxing.github.io/learning-notes/","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-chenxing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-13T13:32:24.000Z","updated_at":"2025-04-21T09:57:42.000Z","dependencies_parsed_at":"2025-03-03T00:50:41.388Z","dependency_job_id":null,"html_url":"https://github.com/dev-chenxing/learning-notes","commit_stats":null,"previous_names":["amaliegay/learning-notes","dev-chenxing/learning-notes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dev-chenxing/learning-notes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-chenxing%2Flearning-notes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-chenxing%2Flearning-notes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-chenxing%2Flearning-notes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-chenxing%2Flearning-notes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-chenxing","download_url":"https://codeload.github.com/dev-chenxing/learning-notes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-chenxing%2Flearning-notes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","html","javascript","jekyll","markdown","miyoo-mini-plus","notes","python","python-docx","scrapy","scss","web"],"created_at":"2024-11-13T22:39:46.011Z","updated_at":"2026-04-13T19:32:24.980Z","avatar_url":"https://github.com/dev-chenxing.png","language":"SCSS","readme":"# 📝 Programming Guides and Learning Notes\n\n- [Create React Project with Vite](#Create-React-Project-with-Vite)\n- [Install Node.js](#Install-Nodejs)\n- [Miyoo Mini Plus Starter Guide](#Miyoo-Mini-Plus-Starter-Guide)\n- [Beautiful Python Terminal Styling with Rich](#Beautiful-Python-Terminal-Styling-with-Rich)\n- [Scrapy - Python Web Scraping](#Scrapy---Python-Web-Scraping)\n- [Create Word Documents with Python: python-docx](#Create-Word-Documents-with-Python-python-docx)\n- [Commands in Linux](#Commands-in-Linux)\n- [社会工作必考点](#社会工作必考点)\n\n\n## Create React Project with Vite\n\nRequirements: Node.js\n\nTo get started with [Vite](https://vitejs.dev/guide/), open the terminal and navigate up one directory from the target directory. For example, if you would like the project scaffolded in `D:\\react-with-vite`, run the below command in `D:\\`.\n\n```powershell\nnpm create vite@latest\n```\n\nThen, run:\n\n```powershell\ncd $PROJECT_NAME\nnpm install\nnpm run dev\n```\n\n## Install Node.js\n\nDownload Node.js (LTS) on [nodejs.org](https://nodejs.org/en).\n\n## Miyoo Mini Plus Starter Guide\n\n### Backup BIOS and Roms\n\nThe BIOS files from the stock operating system are located in `\\RetroArch\\.retroarch\\system`. The Rom files are located in `\\Roms`.\n\n### Install OnionOS\n\nDownload [Onion Desktop Tools](https://github.com/schmurtzm/Onion-Desktop-Tools/blob/main/README.md) and run the `_Onion Desktop Tools - Launcher.bat` to **format SD card in FAT32 and install Onion**.\n\nOnce it's done, eject the SD card from our computer. Plug it into the Miyoo Mini Plus and power it on. The installation process will begin automatically.\n\n### Package Manager\n\nAfter the installation is complete, install emulators and apps in the package manager:\n\n-   NEC - TurboGrafx-16\n-   Nintendo - DS\n-   Nintendo - GBA\n-   Nintendo - Game Boy Color\n-   Nintendo - NES\n-   Nintendo - SNES\n-   Sega - Genesis\n-   Sega - Master System\n-   Sega - CD\n-   Sega - Game Gear\n\nPress START to install. Then shut down the device, eject the SD card, and put it back into the computer.\n\n### Install BIOS\n\nMove the following BIOS files to the `\\BIOS` folder:\n\n-   SEGA CD: `bios_CD_E.bin`, `bios_CD_J.bin`, `bios_CD_U.bin`\n-   Sega Game Gear: `bios.gg`\n-   Game Boy: `gb_bios.bin`\n-   Game Boy Advance: `gba_bios.bin`\n-   Game Boy Color: `gbc_bios.bin`\n-   Neo Geo: `neogeo.zip` (Keep it in both the `/BIOS` folder and the `/Roms/NEOGEO` folder to ensure best compatibility)\n-   PlayStation: `scph5501.bin`\n-   PC Engine: `syscard1.pce`, `syscard2.pce`, `syscard3.pce`\n\n### Install Roms\n\nMove the ROM files to the subfolders within the `\\Roms` folder:\n\n-   Arcade: `ARCADE`\n-   NES: `FC`\n-   Game Boy: `GB`\n-   Game Boy Advance: `GBA`\n-   Game Boy Color: `GBC`\n-   Sega Game Gear: `GG`\n-   Sega Genesis: `MD`\n-   Sega - Master System: `MS`\n-   NDS: `NDS`\n-   Neo Geo: `NEOGEO`\n-   TurboGrafx-16: `PCE`\n-   PlayStation: `PS`\n-   Sega CD: `SEGACD`\n-   SNES: `SFC`\n\nMore information please check the [Onion Docs](https://onionui.github.io/docs/emulators/nes)!\n\n### Install Themes and Icons\n\nThemes and icon packs can be downloaded from [here](https://github.com/OnionUI/Themes/blob/main/README.md).\n\nUnzip the downloaded theme to the `/Themes` folder and apply it with the ThemeSwitcher app.\n\nUnzip the downloaded icon pack to the `/Icons` folder. To install the icon pack, use the Tweaks app, 'Apperance' -\u003e 'Icons packs...' -\u003e 'Apply icon pack...'.\n\n## Beautiful Python Terminal Styling with Rich\n\nInstall [Rich](https://rich.readthedocs.io/en/latest/introduction.html)\n\n```powershell\npip install rich\n```\n\nImport the alternative `print` function which does basic syntax highlighting for the printed text.\n\n```python\nfrom rich import print\n```\n\nIt is also requried for printing Rich _renderables_, such as Panel.\n\n```python\nfrom rich.panel import Panel\n\nprint(\n    Panel(\n        \"Lorem ipsum dolor sit amet\",\n        style=\"bold red\",               # set the font color and style\n        border_style=\"bright_white\",    # set the border color\n        width=48,                       # set the panel width\n    )\n)\n```\n\n## Scrapy - Python Web Scraping\n\n### Install Scrapy\n\nFirst, create a new virtual environment.\n\n```powershell\npython -m pip install --upgrade pip # upgrade pip\npython -m venv venv\nvenv\\Scripts\\activate               # or source venv/bin/activate if you are on Linux\n```\n\nThen, install the Scrapy package.\n\n```powershell\npip install scrapy\n```\n\nYou should also install IPython, which makes the Python console more user-friendly, since you will be using the Scrapy shell a lot during the development of Scrapy spiders.\n\n```powershell\npip install ipython\n```\n\n### Start Scrapy Project\n\nStart a Scrapy project in the current directory. Note that the project name should be the same with the folder name.\n\n```powershell\nscrapy startproject \u003cproject_name\u003e .\nscrapy genspider example example.com\n```\n\nHere, `example` would be the name of the spider, and `example.com` would be the allowed domain.\n\n### Run the Scrapy Spider\n\n```powershell\nscrapy crawl example\n```\n\n## Create Word Documents with Python: python-docx\n\nInstall the [python-docx](https://python-docx.readthedocs.io/en/latest/) package\n\n```powershell\npip install python-docx\n```\n\nHere is an example of what `python-docx` can do:\n\n![](py/Lorem Ipsum.png)\n\n```python\nfrom docx import Document\nfrom docx.shared import Pt, Cm, RGBColor\nfrom docx.enum.text import WD_ALIGN_PARAGRAPH\n\nfile_name = \"Lorem Ipsum\"\ndirectory = \"\"\n\n# create the document\ndoc = Document()                                            \n\n# set margin to 2 cm\nsection = doc.sections[0]\nsection.left_margin, section.right_margin = Cm(2), Cm(2)    \n\nnormal_style = doc.styles[\"Normal\"]\nnormal_font = normal_style.font\nnormal_font.name = \"Helvetica\"                  # set font family\nnormal_font.size = Pt(12)                       # set font size to 12pt\nnormal_paragraph_format = normal_style.paragraph_format   \nnormal_paragraph_format.line_spacing = Pt(14)   # set line spacing to 14pt\n\n# add a centered paragraph\ncenter_paragraph = doc.add_paragraph(\"Lorem ipsum\")\ncenter_paragraph.alignment = WD_ALIGN_PARAGRAPH.CENTER      \n\n# add a plain paragraph\ndoc.add_paragraph(\"Lorem ipsum dolor sit amet, \")           \n\n# add a paragraph with color red\nred_paragraph = doc.add_paragraph(\"consectetur adipiscing elit, \")\nred_paragraph.runs[0].font.color.rgb = RGBColor(0xFF, 0x00, 0x00)  \n\n# add a paragraph with color blue\nblue_paragraph = doc.add_paragraph(\n    \"sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \")\nblue_paragraph.runs[0].font.color.rgb = RGBColor(0x00, 0x00, 0xFF) \n\n# save the document to the output path\noutput_path = f\"{directory}{file_name}.docx\"\ndoc.save(output_path)\n```\n\n## Commands in Linux\n\n### pacman\n\nInstalling Packages using the Pacman\n\n```bash\nsudo pacman -S arduino-ide\n```\n\nUpgrading packages\n\n```bash\nsudo pacman -Suy\n```\n\n### 7z\n\nExtract all files from an archive to the current directory with full paths\n\n```bash\n7z x arduino-ide_2.3.3_Linux_64bit.zip\n```\n\n## 社会工作必考点\n\n# 社会工作的内涵、原则及主要领域\n## 社会工作的含义与特点\n\n#### 一、社会工作的含义\n\n社会工作是社会建设的重要组成部分。社会工作是参与社会治理的重要力量。\n\n#### 二、社会工作的特点\n\n1. 专业助人活动\n2. 注重专业价值\n3. 强调专业方法\n4. 注重实践\n5. 互动合作\n6. 多方协同\n\n**※ 易混淆考点：互动合作 VS 多方协同**\n互动合作指的是社工与服务对象之间的互动交流。\n多方协同指的是社工和其他人（不是服务对象）一起合作，共同帮助服务对象解决困难。\n\n## 社会工作的目标\n\n服务对象层面：\n- 解救危难（涉及服务对象的生命健康安全）\n- 缓解困难（涉及服务对象的除了生死攸关之外的困难）\n- 激发潜能（激发服务对象潜能解决自身问题）\n- 促进发展（教育培训等）\n\n## 社会工作的功能\n\n#### 社会工作在服务对象层面的功能：\n1. 促进服务对象的正常生活\n2. 恢复弱化的功能\n3. 促进人的发展\n4. 促进人与社会环境的相互适应\n#### 社会工作在社会层面的功能：\n1. 维护社会秩序\n2. 建构社会资本\n3. 促进社会和谐\n4. 推动社会进步\n\n## 社会工作的要素\n\n1. 社会工作的服务对象\n2. 社会工作者：社会工作者的素质、经验和能力直接影响服务成效。\n3. 价值观\n4. 专业助人方法\n5. 助人活动\n\n## 社会工作者的角色\n\n1. 治疗者：针对心理及行为问题开展工作。\n2. 使能者：调动服务对象自身的能力和资源，发挥服务对象的潜在能力。\n3. 倡导者：向服务对象动员、鼓励、呼吁。\n4. 联系人：帮助服务对象与拥有资源的服务机构联系。\n5. 教育者：教给服务对象新知识、新方法、新技能。\n6. 政策影响者。\n\n## 社会工作的主要领域\n\n#### 一、主要服务领域\n- 儿童及青少年社会工作\n- 老年社会工作\n- 妇女社会工作\n- **残疾人社会工作**：包括康复服务、就业支持、无障碍环境建设等。\n- 司法社会工作\n- 优抚安置社会工作\n- 社会救助社会工作\n- 减贫社会工作\n- 家庭社会工作\n- 学校社会工作：主要有三种方式\n\t- **治疗型**学校社会工作是针对“问题学生”失常的心理和行为而开展的工作；\n\t- **变迁型**学校社会工作是帮助学生适应激烈的社会变迁而开展的工作，包括各种辅导活动；\n\t- **社区-学校社会工作**，包括联系学生家长，实现家-校沟通，对离校学生提供追踪服务等。\n- 社区社会工作\n- 医务社会工作\n- 企业社会工作\n\n\n# 社会工作的价值观和专业伦理\n\n**我国社会工作价值观：** 以人为本，回应需要；接纳和尊重；个别化和非评判；注重和谐，促进发展；平等待人，注重参与；权利与责任并重；个人发展与社会发展相结合。\n#### 社会工作价值观的操作原则：\n\n1. 基本信念：尊重、独特性、相信人能改变\n2. 实践原则\n\t1. 接纳\n\t2. 非评判\n\t3. 个别化：针对不同人的需求，让每一个人满意\n\t4. 保密：一般情况下，涉及到服务对象的隐私，社会工作者应保密，前提是\n\t\t1. 服务对象行为在法律法规允许下；\n\t\t2. 在服务对象本人及周围人的生命健康财产不遭受威胁下\n\t5. 当事人自决\n\n#### 社会工作专业伦理的基本内容\n\n社会工作专业伦理的主要内容包括以下几个方面：\n1. 对服务对象\n2. 对同事：在工作的过程中，重视同事的建议和想法\n3. 对服务机构：遵守机构规定、落实机构服务宗旨、负责管理个案\n4. 作为专业人员：提供专业服务、专业知识的拓展\n5. 对社会工作专业：专业的评估研究\n6. 对全社会\n\n#### 社会工作实践中的伦理决定的原则\n\n1. 保护生命原则：劝说打消自杀的念头\n2. 差别平等原则：个别化\n3. 自由自主原则：当事人自决\n4. 最小伤害原则\n5. 生命质量原则：注重生命质量的提升，提高服务对象的身体及心理健康指数，鼓励服务对象工作自食其力\n6. 隐私保密原则\n7. 真诚原则\n伦理是操作层面的价值观，是实践中的行为守则。\n\n#### 社会工作专业伦理对社会工作的作用\n\n1. 评判专业服务是否适当：为社会工作者开展实务提供依据和指导，确保服务的专业性；\n2. 保障服务对象的权利；\n3. 减轻社会工作者伦理抉择上的压力及两难：指引社会工作者作出决定和行为，为其提供抉择的基本依据；\n4. 帮助社会工作者自我反思及价值澄清；\n5. 奠定社会对社会工作信任的基础。\n\n# 人类行为与社会环境\n\n## 人类行为\n\n### 人类需要的层次和类型\n\n#### 马斯洛的需要层次论\n1. 生理需求\n2. 安全需求\n3. 爱与归属需求\n4. 尊重的需求\n5. 自我实现的需求\n#### 阿尔德弗尔的ERG理论\n1. 生存的需要-E (Existence)\n2. 关系的需要-R (Relatedness)\n3. 成长的需要-G (Growth)\n\n- 不需要强调需要层次的顺序\n- 当较高级需要受到挫折时，可能会降而求其次\n- 某种需要在得到基本满足后，其强烈程度可能会增强\n\n#### 莱恩·多亚尔和伊恩·高夫的需求理论\n1. 基本需要：身体健康；自主性\n2. 中介需要：在所有文化中能够促进基本需要的产品、服务、活动和关系的特性\n\t- 11种：营养的食物和洁净的水；具有保护功能的住房；无害的工作环境；无害的自然环境；适当的保障；童年期的安全；重要的初级关系；环境安全；经济安全；适当的教育；安全的生育控制与分娩。\n\n#### 同辈群体对个体行为的影响\n- 对个体的认知发展、行为塑造、情绪表达、精神追求及支持系统均有直接影响\n\n### 人类行为的类型和特点\n\n#### 人类行为的特点\n1. 适应性：适应环境同时改变环境\n2. 多样性\n3. 发展性\n4. 可控性：有意识地控制和调节\n5. 整合性\n\n## 社会环境\n\n### 社会环境的含义和特点\n\n#### 家庭教养模式的类型\n1. 娇纵型：爱 + 不管\n2. 支配型：爱 + 管\n3. 专制型：不爱 + 管\n4. 放任型：不爱 + 不管\n5. 冲突型：家庭成员间人际关系紧张、不和谐、有矛盾\n6. 民主型：互相尊重、平等交流\n### 人生发展阶段\n\n#### 婴幼儿（0~3岁）\n- 社会性发展阶段：\n\t- 0~6个月：单纯社会化阶段，对陌生人也会微笑\n\t- 7个月~2岁：社会性情感连接建立阶段，偏爱熟悉的人\n\t- 2~3岁：伙伴关系发展阶段\n\n# 个案工作方法\n\n## 危机介入模式\n\n#### 危机的发展阶段\n1. 开始阶段：危机发生，习惯性解决，失败\n2. 解组阶段：情绪困扰，能力下降，平衡被打乱\n3. 恢复阶段：调整行为方式，寻找新的办法\n4. 重组阶段：重拾自信，恢复平衡\n\n[⬆️ Back to the Top](#-programming-guides-and-learning-notes)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-chenxing%2Flearning-notes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-chenxing%2Flearning-notes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-chenxing%2Flearning-notes/lists"}