This is the 25th day of my participation in the First Challenge 2022
Hello everyone, I am my old cousin ~
Today is Valentine’s Day on February 14, 2019. Here are some Github projects that are perfect for valentine’s Day. Choose one and send it to your special someone.
A direct search on Github for Valentine’s Day brings up 174 open source projects. Let’s take a look at them
Three front-end releases and four Python releases
- How to deploy front-end code to your Github and make objects accessible online — romantic case
- 1, online version: dialog box confession
- 2, online version: web writing paper program wind
- 3. Python Project: Valentine’s Day confession assistant
- 4. Python image processing: Merge the object material image into the main image
- Python projects: Aggregate projects, 5 ways to show love
- 6. Python Image processing: Insert the confession text into each pixel of the image
How to deploy front-end code to your Github and make objects accessible online — romantic case
First of all, I would like to introduce to you the most romantic and excellent project, Teacher Cui Qingcai’s Valentinday.
Project address: github.com/Germey/Vale…
Project Demo:
Run the project
Github
Git push 413
1> Star Fork project
After the browser accesses the project address, give the project a star and then click fork to copy the project into your project space.
2> Git clone project to local
On your own site, open a directory (where the project code is stored, for example in myValentine
Git Clone will download the corresponding repository on Github to the local directory and enter the project directory. The process is as follows:
Note that the project address should be changed to your own:
git clone[email protected]: Your Github username/valentinday.gitCopy the code
3> Modify the code copy
The relevant text is in Valentinday /index.html, so we should only need to modify the text inside.
Modify the body tag content and the last date related parameters.
4> Upload the modified code back to Github
After the code is modified, you can send the code back to Github through git related instructions as follows:
5> Open the Github page of the project
With Github Page enabled, you can access static pages directly from Github page, even if you don’t have a server domain name.
6> Browser access
We can access our static github page directly by following the link in the format below.
https://< your username >.github. IO/project name#, such as: https://xksa-me.github.io/ValentinesDay
Copy the code
1, online version: dialog box confession
Project address: github.com/wongjohn/fo…
Project Demo:
Project Modification Description:
- Copy modification in
for-my-love/assets/dialog.json
Modify the copy in the file.
- Image modification in
for-my-love/img
Add your own image to this folder and reference it in the copy above with the IMG tag.
Personal feeling: very good, creativity, form, aesthetic feeling are ok, more recommend to use.
2, online version: web writing paper program wind
Project address: github.com/nostarsnow/…
Project Demo:
Project Modification Description:
- Copy modification in
loving/static/js/app.dd44f265da874e0d2a25.js
Modify the copy in the file.
- The background picture of the writing paper is
loving/static/img/timg.1a8a778.jpg
If you want to modify, please pay attention to the image size and file name do not change, avoid to modify more code ~
Personal feeling: very good, creative is very good, program code and content together, have a little science and technology wind feeling, oneself like very much, but the object may not have the same feeling, oneself weigh use!
3. Python Project: Valentine’s Day confession assistant
Project address: github.com/zzz12696/lo…
Project introduction: PyGame-based Valentine’s Day confession assistant (rogue).
Project Demo:
Project Modification Description:
- Copy modification in
love-master/love.py
Modify the copy in the file, music files, pictures are directly placed in the filelove-master
In, replace it with your own to avoid more changes and keep the file name the same.
Love - master ├ ─ ─ 1. Mp3# Background music├ ─ ─ 1. PNG# Dialog box image├ ─ ─ love. PNG# Dialog box image├ ─ ─ love. Py# project code file├ ─ ─ msyhl. TTC# font file└ ─ ─ requirements. TXT# Third-party packages required
Copy the code
Personal feeling: very interesting, creativity, form, aesthetic feeling are ok, more recommend to use.
4. Python image processing: Merge the object material image into the main image
Project address: github.com/pengfexue2/…
Project introduction: Valentine’s Day confession, integrated the material pictures of the sweetheart into the main picture.
Project Demo:
Project Modification Description:
- Code run changes in
lover_pic-master
In the demo folder to add their favorite person’s picture material, JPG format, inlover_pic-master
filestatr.jpg
Replace the files with your own, such as a photo of yourself with your sweetheart or other cute pictures.
Lover_pic - master ├ ─ ─ the README, md# Project description document├ ─ ─ the demo# Unlimited number of JPG files for image folder├ ─ ─ lover_pic. Py# code file├ ─ ─ out. JPG# Code generated middle image├ ─ ─ result. JPG# Send the final combined picture to your crush└ ─ ─ start. JPG# The first image
Copy the code
Personal feeling: not bad, creative, adjust the size of the picture, merge the transparency of the picture, beauty can also have ~
Python projects: Aggregate projects, 5 ways to show love
Project address: github.com/JoeTsing/Va…
Project description: Including: drawing 3D heart shape map, drawing I LOVE YOU, outputting LOVE, embedding professing words into picture pixels, and drawing wavy heart lines (favorite).
Project Demo:
Project Modification Description:
- Copy modification in
.py
Modify related documents in the code file. Other documents are explained as follows:
Valentine. S_Day ├ ─ ─ 3 d_heart. Py# Draw 3D heart map├ ─ ─ Love. PyI LOVE YOU├ ─ ─ the OUTPUT# Output file folder│ ├─ ├─ ├─ ├─ exercisesOne line of Python code to achieve comparison├ ─ ─ Photo# Enter the folder for storing images│ ├── ├─ ├─ ├─ ├─ ├.htm# Express the text embedded in the image pixel├ ─ ─ the StaticStatic resource files, such as font files│ ├ ─ sci-sci-imp ─ sci-sci-sci-sci-imp# Python draws wavy heart lines
Copy the code
Personal feeling: I like drawing undulating heart lines in Python most, which is creative and beautiful
6. Python Image processing: Insert the confession text into each pixel of the image
Project address: github.com/moyuweiqing…
Project introduction: Valentine’s Day confession artifact, will your confession object with I love you to fill it!
Project Demo:
Project Modification Description:
- Copy modification in
Valentine-s-Day-Gift/Valentine.py
You can modify the copy in the file, and you need to write your own original map path (IMg_PATH).
- Image modification in
Valentine-s-Day-Gift
Folder, you can add your own pictures here.
Personal feeling: ok, creative, form, aesthetic feeling are OK, can try ~
All the relevant code in this article can be downloaded through the original open source address, if github download is slow, you can download my debugging code file through Baidu Cloud, you can get it in the comment area, in the/code /Valentine directory, remember to like na.
Persistence and hard work: results.
Like to see the message forwarding, four support, the original is not easy. Ok, see you next time, I love the cat love technology, more love si si’s old cousin Da Mian ଘ(˙꒳˙)ଓ Di Di