OP is specifically talking about code contributions. You can (I have) make that type of contribution to proprietary software.