rotate a matrix

August 22, 2014 1 comment

Rotate clockwise:

rotated = zip(*original[::-1])

Rotate counterclockwise:

rotated_ccw = zip(*original)[::-1]

I found this trick in this thread.

[django] awesome Django apps, projects and resources

August 12, 2014 Leave a comment

A curated list of awesome Django apps, projects and resources: https://github.com/rosarior/awesome-django.

Categories: django Tags:

[django] must-watch videos

August 12, 2014 Leave a comment

Must-watch videos about Django (or about Python as applied to Django): https://github.com/rosarior/django-must-watch.

Categories: django Tags: , , ,

[django] Heroku with GoDaddy

August 11, 2014 Leave a comment

Problem
You put your Django project on Heroku and you register a custom domain name for it at GoDaddy. How to assign this domain name to your project on Heroku?

Solution

Categories: django Tags: , , , ,

[django] force HTTPS on Heroku

August 7, 2014 Leave a comment

django-sslify forces SSL on your Django site. It has an excellent documentation, can be set up in a few minutes.

I tried it on Heroku and it works well.

Categories: django Tags: ,

[django] deploy Django on Heroku

August 7, 2014 Leave a comment

https://devcenter.heroku.com/articles/getting-started-with-django

Follow the guide above to deploy your Django project on Heroku.

Categories: django Tags: ,

[webdev] nice CSS buttons

August 4, 2014 Leave a comment

I found some nice CSS3 gradient buttons. Here is a demo with the buttons.

buttons

Categories: web development Tags: ,
Follow

Get every new post delivered to your Inbox.

Join 72 other followers