├── count.txt
├── .gitignore
├── kiss.gif
├── README.md
├── .github
└── workflows
│ ├── .auto-green.yml
│ └── GitHub-Profile-3D-Contrib.yml
├── package.json
├── task.js
├── tags.svg
└── profile-3d-contrib
└── profile-season.svg
/count.txt:
--------------------------------------------------------------------------------
1 | 26772
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules
--------------------------------------------------------------------------------
/kiss.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dynamic-form/davych/master/kiss.gif
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ### Hi there 👋
2 | ## I'm davy👋
3 |
4 | 
5 |
6 |
7 | 
8 |
--------------------------------------------------------------------------------
/.github/workflows/.auto-green.yml:
--------------------------------------------------------------------------------
1 | # name: ci
2 |
3 | # on:
4 | # schedule: # 03:00 JST == 18:00 UTC
5 | # - cron: "0 18 * * *"
6 | # workflow_dispatch:
7 |
8 | # jobs:
9 | # autogreen:
10 | # runs-on: ubuntu-latest
11 | # steps:
12 | # - name: Clone repository
13 | # uses: actions/checkout@v2
14 |
15 | # - name: Auto green
16 | # run: |
17 | # git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
18 | # npm i
19 | # npm run fake
20 |
--------------------------------------------------------------------------------
/.github/workflows/GitHub-Profile-3D-Contrib.yml:
--------------------------------------------------------------------------------
1 | name: GitHub-Profile-3D-Contrib
2 |
3 | on:
4 | schedule: # 03:00 JST == 18:00 UTC
5 | - cron: "0 18 * * *"
6 | workflow_dispatch:
7 |
8 | jobs:
9 | build:
10 | runs-on: ubuntu-latest
11 | name: generate-github-profile-3d-contrib
12 | steps:
13 | - uses: actions/checkout@v2
14 | - uses: yoshi389111/github-profile-3d-contrib@0.6.0
15 | env:
16 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 | USERNAME: ${{ github.repository_owner }}
18 | - name: Commit & Push
19 | run: |
20 | git config user.name github-actions
21 | git config user.email github-actions@github.com
22 | git add -A .
23 | git commit -m "generated"
24 | git push
25 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "davych",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "fake": "node task.js -r esm"
9 | },
10 | "repository": {
11 | "type": "git",
12 | "url": "git+https://github.com/davych/davych.git"
13 | },
14 | "author": "",
15 | "license": "ISC",
16 | "bugs": {
17 | "url": "https://github.com/davych/davych/issues"
18 | },
19 | "homepage": "https://github.com/davych/davych#readme",
20 | "dependencies": {
21 | "esm": "^3.2.25",
22 | "execa": "^6.0.0",
23 | "moment": "^2.29.1"
24 | },
25 | "type": "module"
26 | }
27 |
--------------------------------------------------------------------------------
/task.js:
--------------------------------------------------------------------------------
1 | import {execa} from 'execa';
2 | import moment from 'moment';
3 | import fs from 'fs';
4 |
5 |
6 | const fileOP = () => {
7 | return new Promise((resolve, reject) => {
8 | fs.readFile("count.txt", function(err, buf) {
9 | const count = parseInt(buf.toString());
10 | fs.writeFile("count.txt", `${count + 1}`, (err) => {
11 | console.log("Successfully Written to File.");
12 | resolve(true)
13 | });
14 | });
15 | })
16 | }
17 |
18 | await execa('git', ['config', '--local', 'user.email', "davych@163.com"]);
19 | await execa('git', ['config', '--local', 'user.name', "davych"]);
20 | (async () => {
21 | const list = [2022];
22 | for (let j = 0; j < list.length; j++) {
23 | const y = list[j];
24 | let cal = moment(`${y}-01-01`);
25 | let days = 360;
26 | for (let i = 0; i < days; i++) {
27 | let date = cal.format('LLLL');
28 | for (let index = 0; index < (i % 22); index++) {
29 | await fileOP();
30 | await execa('git', ['add', '.']);
31 | await execa('git', ['commit', '-m', `a commit a day keeps your girlfriend away ${date}`]);
32 | await execa('git', ['push', '-f']);
33 | await execa('git', ['commit', '--amend', '--no-edit', "--date", date]);
34 | await execa('git', ['push', '-f']);
35 | }
36 | cal.add(1, 'days');
37 | }
38 | }
39 | })()
--------------------------------------------------------------------------------
/tags.svg:
--------------------------------------------------------------------------------
1 |
47 |
--------------------------------------------------------------------------------
/profile-3d-contrib/profile-season.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------