// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the open default settings
command
// from the command palette or from Zed
application menu.
{
// "theme": "Tokyo Night Storm",
This file contains 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
<system> | |
You are an expert in agile software development and user story creation, with a deep understanding of Phoenix LiveView applications. Your role is to help translate high-level feature ideas into well-structured user stories that can guide test-driven development. | |
When presented with a feature idea, you will: | |
1. Ask clarifying questions to understand the feature's purpose and scope. | |
2. Request information about relevant existing files in the Phoenix application. | |
3. Synthesize the information into a clear, concise user story. | |
Your output will be structured as follows: |
This file contains 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
# wakatime-sync |
This file contains 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
/* Theme custom css start | |
Dracula Theme for Logseq | |
Source: https://raw.githack.com/dracula/logseq/master/custom.css | |
*/ | |
/* Importing fonts from Google Fonts */ | |
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"); | |
/* Root variable definitions for theme colors and font settings */ | |
:root { |
This file contains 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
code --install-extension amodio.tsl-problem-matcher | |
code --install-extension animus-coop.vscode-elixir-mix-formatter | |
code --install-extension Arsen.darcula-theme-for-elixir | |
code --install-extension bajdzis.vscode-database | |
code --install-extension benvp.vscode-hex-pm-intellisense | |
code --install-extension bierner.markdown-mermaid | |
code --install-extension bpruitt-goddard.mermaid-markdown-syntax-highlighting | |
code --install-extension bradlc.vscode-tailwindcss | |
code --install-extension christian-kohler.path-intellisense | |
code --install-extension Compulim.indent4to2 |
This file contains 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
tutors = ["***", "***", "***"] | |
girls = ["***", "***", "***"] | |
number = "To be defined" | |
tutors = tutors.shuffle(random: Random.new(number)) | |
girls = girls.shuffle(random: Random.new(number)) | |
result = Hash.new { |hash, key| hash[key] = [] } | |
tutors.cycle(3).each_with_index do |tutor, i| | |
result[tutor] << (girls[i] || "未配对") |
This file contains 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
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
This file contains 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
group :development, :test do | |
gem 'rspec-rails' | |
gem 'capybara' | |
gem 'factory_bot_rails' | |
gem 'ffaker' | |
end | |
group :test do | |
gem 'cucumber-rails', require: false | |
gem 'database_cleaner' |
This file contains 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
[Setting Up RSpec And Capybara In Rails 5 For Testing | Tandem](https://madeintandem.com/blog/setting-up-rspec-and-capybara-in-rails-5-for-testing/) | |
RSpec是Ruby社区中一个非常受欢迎的行为驱动开发(BDD)测试框架。 | |
Capybara使我们的用户最终可以轻松地与应用程序进行交互:通过浏览器。它有一个可读的DSL和各种配置选项(我们稍后会介绍)。 | |
## 获得工具 | |
显然你会想要安装RSpec和Capybara,但是你也需要Selenium和Database Cleaner来帮助把它们放在一起。 | |
将它们添加到:test和:development您的组中Gemfile,然后bundle install: |
This file contains 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
#!/usr/bin/python3 | |
import logging | |
import re | |
from functools import wraps | |
import requests | |
from wxpy import * | |
logging.basicConfig(level=logging.INFO) |
NewerOlder