├── .gitignore
├── CNAME
├── README.md
├── dist
├── CNAME
├── README.md
├── index.html
├── pi.js
├── pi.png
├── pi.webp
└── publish.sh
├── index.html
├── pi.js
├── pi.png
├── pi.webp
├── publish.sh
└── sync.sh
/.gitignore:
--------------------------------------------------------------------------------
1 | # swap
2 | [._]*.s[a-v][a-z]
3 | [._]*.sw[a-p]
4 | [._]s[a-v][a-z]
5 | [._]sw[a-p]
6 | # session
7 | Session.vim
8 | # temporary
9 | *.bak
10 | *.pyc
11 | *~
12 | .DS_STORE
13 | .netrwhist
14 | # auto-generated tag files
15 | tags
16 |
--------------------------------------------------------------------------------
/CNAME:
--------------------------------------------------------------------------------
1 | pi.theden.sh
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PiDay
2 |
3 | * Finds where the current date exists in Pi
4 | * Clientside javascript hack with lookup of Pi's digits
5 |
--------------------------------------------------------------------------------
/dist/CNAME:
--------------------------------------------------------------------------------
1 | pi.theden.sh
2 |
--------------------------------------------------------------------------------
/dist/README.md:
--------------------------------------------------------------------------------
1 | # PiDay
2 |
3 | * Finds where the current date exists in Pi
4 | * Clientside javascript hack with lookup of Pi's digits
5 |
--------------------------------------------------------------------------------
/dist/index.html:
--------------------------------------------------------------------------------
1 |
2 |
Every day is Pi day The current date is
4 | Parsed as DDMMYY, it's the number
5 | This number occurs at the decimal position
6 | of Pi Parsed as HHMMSS, it's the number
7 | This number occurs at the decimal position
8 | of Pi
theden.sh
GitHub Repo
--------------------------------------------------------------------------------
/dist/pi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheDen/PiDay/992559f9384c13864bb2adbbd6786297ebdc0d67/dist/pi.png
--------------------------------------------------------------------------------
/dist/pi.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheDen/PiDay/992559f9384c13864bb2adbbd6786297ebdc0d67/dist/pi.webp
--------------------------------------------------------------------------------
/dist/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | git push origin $(git subtree split --prefix dist master):gh-pages --force
4 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
11 |
12 | Every day is Pi day
13 |
35 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | The current date is
73 |
74 |
75 |
76 |
77 | Parsed as DDMMYY, it's the number
78 |
79 |
80 |
81 |
82 |
83 | This number occurs at the decimal position
84 |
85 |
86 |
87 |
88 | of Pi
89 |
90 |
91 | Parsed as HHMMSS, it's the number
92 |
93 |
94 |
95 |
96 |
97 | This number occurs at the decimal position
98 |
99 |
100 |
101 |
102 | of Pi
103 |
104 |
theden.sh
105 |
GitHub Repo
106 |
107 |
108 |
109 |
--------------------------------------------------------------------------------
/pi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheDen/PiDay/992559f9384c13864bb2adbbd6786297ebdc0d67/pi.png
--------------------------------------------------------------------------------
/pi.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/TheDen/PiDay/992559f9384c13864bb2adbbd6786297ebdc0d67/pi.webp
--------------------------------------------------------------------------------
/publish.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | git push origin $(git subtree split --prefix dist master):gh-pages --force
4 |
--------------------------------------------------------------------------------
/sync.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | fixmyjs index.html
4 | rsync --exclude=sync.sh --exclude=dist/ --exclude=.git/ --exclude=.gitignore --delete -av . dist/
5 |
6 | echo "Minifying everything we can"
7 | find ./dist/ -type f \( \
8 | -name "*.html" \
9 | -o -name '*.js' \
10 | -o -name '*.css' \
11 | -o -name '*.svg' \
12 | -o -name "*.xml" \
13 | -o -name "*.json" \
14 | -o -name "*.htm" \
15 | \) \
16 | -and ! -name "*.min*" -print0 |
17 | xargs -0 -n1 -P4 -I '{}' sh -c 'minify -o "{}" "{}"'
18 |
--------------------------------------------------------------------------------