a4c21bf8df
Merge pull request #86 from python-pitfalls/main
...
Removed a manual file handler pitfall
2023-04-03 08:30:53 -04:00
85229d8b29
fix commit calendar svg parsing... and case where there are no contributions on calendar
2023-04-02 22:13:07 -04:00
21390819fa
Removed a manual file handler pitfall
2021-11-02 20:47:44 -03:00
45d3174732
shinier heart
2020-12-12 14:09:53 -05:00
dbfdb5cd88
udpated heart image
...
made it a full heart
2020-12-12 13:58:59 -05:00
072b9018a4
added heart as an image option
2020-12-12 13:58:59 -05:00
a09773cdbf
Merge pull request #78 from christypacc21/new_images
...
Added 2 images - heart1 and heart2
2020-12-09 23:41:35 -05:00
1b213dc2fa
update powershell template for new base branch
2020-12-09 21:39:28 -05:00
6d8cc28ca8
Merge branch 'main'
2020-12-09 21:31:46 -05:00
4ea2ff4e39
update to support main as primary branch name
2020-12-09 17:49:20 -05:00
b8cfd93158
Added 2 images - heart1 and heart2
2020-09-30 01:02:06 +08:00
91686c4272
support powershell as target shell
2020-06-18 23:43:05 +02:00
84e75e0b87
Add gliders template
2018-05-09 13:00:45 -04:00
2a908acf05
Set execute permissions on generated script
2018-05-09 12:50:42 -04:00
3001c5c189
Replace "/bin/bash" with "/usr/bin/env bash"
2018-04-12 00:34:21 -04:00
d605712886
Add new beer template
2018-03-04 21:44:49 +00:00
7ef5f32025
Adjust final message
...
Removes the 'new' behind the GitHub URL and adds the actual repo name to the sentence:
Old: "Create a new(!) repo at https://github.com/new and run the script"
New: "Create a new(!) repo named _reponame_ at https://github.com and run the script"
2017-09-30 19:40:05 +02:00
0df25a7527
Fix git pull
2016-08-16 12:59:36 +02:00
7a80c1d730
drop unused content arg from commit function
2016-06-12 15:23:26 -07:00
52884b2999
Use --allow-empty for performance gelstudios/gitfiti#32
...
* Improves the size of the generated file:
2365211 new-gitfiti.sh
2529001 original-gitfiti.sh
* Cutting the number of executed commands in half (no more echo)
* Vastly reduces the amount of gc git performs during push
2016-06-12 15:15:48 -07:00
65b7694662
Simplified finding of highest daily count by using the max
function.
2016-06-10 00:25:44 +02:00
d23a2d0746
Extracted function to parse daily counts from a contributions SVG and added a test for it.
2016-06-10 00:24:06 +02:00
4d4af436f4
Retrieve and return the contributions calender as a string; split into lines later as part of the processing stage.
2016-06-10 00:15:26 +02:00
18b49c1dad
Clarified names.
2016-06-10 00:13:03 +02:00
6aa52725a6
Adjusted calendar SVG retrieval to work on Python 3, too.
2016-06-06 01:23:25 +02:00
603c7f30e7
Extracted "constant" for fallback image name.
2016-06-06 01:23:25 +02:00
580c13ab68
Slightly streamlined user interface.
2016-06-06 01:23:25 +02:00
777f264796
Make raw_input
available on Python 3 by aliasing it to input
.
2016-06-06 01:23:25 +02:00
3e92a86161
Fix str_to_sprite
on Python 3.
...
I'm using a list comprehension as it is easier to grok than `list(map(list, lines))`.
2016-06-06 01:23:25 +02:00
811a7c2a44
Fixed import of urlopen[2]
on Python 3.
2016-06-06 01:23:25 +02:00
5b6a3cfc2c
Finding the highest daily commit count once is sufficient.
2016-06-06 01:23:21 +02:00
302e83416d
Use one-liner.
2016-06-06 01:23:03 +02:00
f6727b2555
Extracted function calls.
2016-06-06 01:23:03 +02:00
ca1dc8f00e
Turn the optional Git URL argument into a mandatory one.
2016-06-06 01:23:03 +02:00
02d049b1a3
Introduced a few variables.
2016-06-06 01:23:03 +02:00
71c88fc084
Turn the optional base URL argument into a mandatory one.
2016-06-06 01:23:03 +02:00
68a1fb2b03
Extracted "constant" for GitHub base URL.
2016-06-06 01:23:03 +02:00
73361c64d9
Prefix function names with verbs to avoid confusion (or upcoming conflicts) with variables.
2016-06-06 01:23:02 +02:00
bdcdd8f137
Selectively employ one-liner conditionals for brevity.
2016-06-06 01:22:12 +02:00
822048909b
Extracted function to request user input.
2016-06-06 01:22:10 +02:00
60c2aae15f
Fixed name and acronym case.
2016-06-06 01:21:53 +02:00
bb31c8eb46
Create empty dict via literal syntax instead of function call.
2016-06-06 01:21:53 +02:00
c7ffdcde4d
Renamed function argument to reveal its meaning and to not override the built-in input
function.
2016-06-06 01:21:53 +02:00
c2870bb4ec
Clarified variable name.
2016-06-06 01:21:53 +02:00
a76dd860f3
Use string literal delimiters consistently (triple double-quotes for docstrings, [triple] single quotes for everything else where feasible).
2016-06-06 01:21:51 +02:00
b717414e7b
Import the datetime
and timedelta
classes from the datetime
package without having to fully qualify their uses.
2016-06-06 01:21:31 +02:00
e1b2657ff0
Open file via with
statement so it gets closed automatically.
2016-06-06 01:21:31 +02:00
be6bd58080
Formatted with PEP 8 in mind. Inserted additional blank lines for readability. Ordered imports alphabetically. Removed unnecessary parentheses.
2016-06-06 01:21:25 +02:00
9746944e4c
Use "not x" rather than "x == None" for testing the result of raw_input()
2014-11-05 22:08:59 +11:00
d9514f0b4e
changed max_commits() and get_calendar() to fix issue #17
2014-09-26 13:45:12 -04:00