Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commits from detached head #115

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
22468d0
Created a silly mad lib!
mackbullock Sep 20, 2024
114bcd3
Converting tsv file bundle
mackbullock Sep 20, 2024
e064083
Made Python file that fetches remote data
mackbullock Sep 21, 2024
bf61a1e
Moved Python file to my-work
mackbullock Sep 21, 2024
832c37a
Moved into lab3 dir
mackbullock Sep 21, 2024
37c0d35
Merge branch 'uvasds-systems:main' into main
mackbullock Sep 22, 2024
da0f650
Wrote 2st script that uploads pics
mackbullock Sep 27, 2024
6747287
Merge remote-tracking branch 'upstream/main'
mackbullock Sep 27, 2024
ee42fcd
Merge branch 'uvasds-systems:main' into main
mackbullock Sep 28, 2024
9949923
created second python script
mackbullock Sep 28, 2024
7d22bac
Made second script
mackbullock Sep 28, 2024
76c5458
Started second script for lab 4
mackbullock Sep 28, 2024
8c8c896
Merge branch 'uvasds-systems:main' into main
mackbullock Oct 1, 2024
3635872
Merge branch 'uvasds-systems:main' into main
mackbullock Oct 3, 2024
68c7992
Started python script
mackbullock Oct 3, 2024
59e5a51
Second python script
mackbullock Oct 3, 2024
e2ec288
Cleanup
mackbullock Oct 3, 2024
b18d550
Merge branch 'main' of https://github.com/mackbullock/DS2022
mackbullock Oct 3, 2024
7d45206
Almost done with second script
mackbullock Oct 3, 2024
e8efdb9
Working some more on the scripts
mackbullock Oct 4, 2024
2409ddc
Finishing up
mackbullock Oct 4, 2024
d6e0d85
Working bootstrap
mackbullock Oct 10, 2024
85ce2fd
Merge branch 'uvasds-systems:main' into commits-from-detached-head
mackbullock Oct 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Moved Python file to my-work
  • Loading branch information
mackbullock committed Sep 21, 2024
commit bf61a1ec009242a9e241c2739bb9cf3becf87525
21 changes: 21 additions & 0 deletions my-work/github-events.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/python3

import os
import json
import requests
GHUSER=os.getenv('GITHUB_USER')

print(GHUSER)

url = 'https://api.github.com/users/{0}/events'.format(GHUSER)

print(url)

# fetching GH activity using requests library
r = json.loads(requests.get(url).text)

for x in r[:5]:
event = x['type'] + ' :: ' + x['repo']['name']
print(event)

print(r)