Skip to content

Instantly share code, notes, and snippets.

@mitio
mitio / 37signals_ideology_and_profits.md
Created August 3, 2012 21:58
On 37signals' "No Free Accounts" Policy

I've always liked 37signals as a company a lot and today they just shattered my affection for them into pieces.

Teaching programming voluntarily

We're a small group of volunteers teaching programming at a university in Bulgaria. Today we asked 37signals if they would provide us with a free Basecamp account. The account would help us coordinate our team teaching efforts and let us provide the students with more knowledge more efficiently.

As we're not getting paid anything for this by the university (although students get credits for our courses) and as we don't have any budget for course expenses (on the contrary—we pay from our own pockets in order to bring Ruby, Python and Clojure to the curriculum), we asked for a non-trial basic account pro bono.

No free accounts, no matter what

@vstoykov
vstoykov / force_default_language_middleware.py
Last active August 8, 2023 08:24
Force Django to use settings.LANGUAGE_CODE for default language instead of request.META['HTTP_ACCEPT_LANGUAGE']
try:
from django.utils.deprecation import MiddlewareMixin
except ImportError:
MiddlewareMixin = object
class ForceDefaultLanguageMiddleware(MiddlewareMixin):
"""
Ignore Accept-Language HTTP headers
@vstoykov
vstoykov / egn_checker.py
Created August 10, 2011 15:08
Method for checking validity of bulgarian EGN codes.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# egn_checker.py
#
# Copyright 2011 Venelin Stoykov <venelin@magicbg.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
@AndrewRadev
AndrewRadev / bundle_updater_for_vim
Created July 21, 2011 09:28 — forked from vladimiroff/bundle_updater_for_vim
Handy shell script for keeping my bundles in vim up-to date
cd $HOME/.vim/bundle/
for plugin in *; do
cd $plugin
echo ":: Updating $plugin ..."
if [ -d .git ]; then
git checkout master
git pull origin master
else
echo ":: $plugin is not managed as a submodule"
fi