When skills meet required experience
Once in a lifetime you come across a job description that matches your skills and experience. This is one of those moments. A bit about me I have been working as a Software Developer for the past 6+ years. I have experience in developing software applications, web applications, and APIs. Worked with a variety of technologies including Python, JavaScript, HTML, CSS, and SQL. I have a deep understanding of with code management and development processes....
A couple (100) Projects to Improve your Skills as a Programmer
A couple (100) Projects to Improve your Skills as a Programmer A list of practical projects that anyone can solve in any programming language . These projects are divided in multiple categories, and each category has it鈥檚 own folder. To get started, simply fork this github repo. Numbers Find PI to the Nth Digit - Enter a number and have the program generate PI up to that many decimal places. Keep a limit to how far the program will go....
Extracting Nested Query Params
This is a very niche problem I was trying to solve. /api/v1/data?url=https://mysite.com/blog/blopost1?callbackUrl=https://webhook.com/api/me In this link I needed to get the url and nested call back query params, when parsed to the api data endpoint All this was a scope-creep and needed to ebe solved in the shorted time possible My take: NodeJs is powerful, you just need to know where to look(documentation) and who to consult(documentation) const url = require('url'); //https://nodejs....
Getting All Django Models into Admin聽Site
I needed a shortcut to register all my models in Django admin, spent a few hours tinkering with this idea. from django.apps import apps from django.contrib import admin class ListAdminMixin(object): def __init__(self, model, admin_site): self.list_display = [field.name for field in model._meta.fields] super(ListAdminMixin, self).__init__(model, admin_site) models = apps.get_models() for model in models: admin_class = type('AdminClass', (ListAdminMixin, admin.ModelAdmin), {}) try: admin.site.register(model, admin_class) except admin.sites.AlreadyRegistered: pass The only downside is it registers everything, does not provide the custom options of including/excluding fields by putting fields that you need in the admin....
Django's session and cookie manipulation
Django provide direct cookie manipulation methods on the request and response objects (so you don鈥檛 need a helper function). Setting a cookie: def view(request): response = HttpResponse('blah') response.set_cookie('cookie_name', 'cookie_value') Retrieving a cookie: def view(request): value = request.COOKIES.get('cookie_name') if value is None: # Cookie is not set # OR try: value = request.COOKIES['cookie_name'] except KeyError: