Skip to main content

Interesting local coding projects

I set out to learn about interesting local coding projects. We have the recently launched DHub gitlab instance but there are no public projects in there to look at. The next place I could look is github but where do I start? I decided that I should look at the top github users in Trinidad and Tobago and see what projects they are working on. If you know of interesting local coding projects I can look at please leave a comment with links to them. The problem is that I could not find a list of top github users for Trinidad and Tobago. I found this project but Trinidad and Tobago was not included. Jamaica on the other hand is there.

I then set out to create my own listing for Trinidad and Tobago. I found that github had a REST api that I could use. I could have also used GraphQL but the REST api would be easier. I have Pydroid installed on my mobile so I decided to use Python for the coding. After some Google searches and figuring out I was able to come up with a list sorted by follower count. In the future I would try to see what other metrics I could use for the listing.

This is what my python code looks like

import requests

api_url = "https://api.github.com/search/users?q=location:trinidad-and-tobago+followers:%3E40"

response = requests.get(api_url)

users=response.json()

for user in users["items"]:
    print(user["login"])
    api_url = user["url"]
    user_detail = requests.get(api_url).json()
    print(user_detail["name"])
    print(user_detail["followers"])

And this was the results as of the date of this blog post. I do not know if there is a more efficient way to do this in one api call.


I have created a nice looking html page that I shared on my github pages. The latest code on github is here. The real goal though is to find interesting local coding projects so let us know if you know of any. If I find any I would highlight them on my blog in the future. Also, it feels really nice to have done some coding after some time. There shall be more coding in the new year, God willing.

Comments

Popular posts from this blog

Stuck running sftp server on termux alpine for multi-user setup

The below is my journey trying to get multi-user sftp working using alpine on termux pkg update && pkg upgrade pkg install proot-distro openssh proot-distro install alpine proot-distro login alpine apk update apk upgrade apk add openssh shadow sudo apk add vim vim /etc/ssh/sshd_config Port 8022 PermitRootLogin no PasswordAuthentication yes Subsystem sftp internal-sftp Match Group sftpusers     ChrootDirectory /sftp/%u     ForceCommand internal-sftp     X11Forwarding no     AllowTcpForwarding no addgroup sftpusers adduser user1 adduser user1 sftpusers mkdir -p /sftp/user1/upload chown root:root /sftp/user1 chmod 755 /sftp/user1 chown user1:sftpusers /sftp/user1/upload How I run my server each time pkill sshd rm -f /etc/ssh/ssh_host_* ssh-keygen -A /usr/sbin/sshd -D -d -d -d From another termux session sftp -P 8022 user1@127.0.0.1 Connection reset by 127.0.0.1 port 8022 Connection closed Some troubleshooting steps mkdir -p /run/sshd chmod 75...

Recursion example with SQL

I asked my friend Chatty, can you use recursion in SQL? For example I have a table (ID, value) ordered by increasing ID. Can you guide me through using recursion to select all the rows of consecutive repeated values using and creating an SQLite database. Provide the small sample data. Is there a better way to do this? A More Modern Alternative (Window Functions) In real-world SQL, this problem is usually solved more efficiently using window functions like: LAG() ROW_NUMBER() SUM() OVER But recursion is excellent for learning traversal logic and hierarchical thinking. Recursion example using sqlite on termux DROP TABLE IF EXISTS sample; CREATE TABLE sample (     id INTEGER PRIMARY KEY,     value TEXT ); INSERT INTO sample (id, value) VALUES (1, 'A'), (2, 'A'), (3, 'A'), (4, 'B'), (5, 'B'), (6, 'C'), (7, 'A'), (8, 'A'), (9, 'D'), (10, 'D'), (11, 'D'), (12, 'D'); WITH RECURSIVE grouped AS (    ...

23 by 2

At 239am, on my 46th birthday, I decided to write. I got up early and washed the wares, and now I am in my bed enjoying the silence of the night. The room echoes with the fan breeze. Birthdays are special because they mark our entrance into this world, a reminder that our mothers carried us for nine months and laboured to bring us here. In Islam we are taught not to make birthdays into celebrations, but reflection and gratitude are different. I think we can pause and be thankful. When I look back on my life, I see ups and downs, ease and struggle, calm and chaos. It may sound cliche, but the older I get, the more I value peace and quiet. I no longer have the energy for drama, negativity, endless news, or politics. I simply want to be surrounded by goodness and positivity. More than anything, I want to hold on to God for whatever time I have left here, because in the end, all the fighting and chasing make little sense. One day, every one of us will leave everything behind. This has been...