- You can store a price in a floating point variable.
 - All currencies are subdivided in 1/100th units (like US dollar/cents, euro/eurocents etc.).
 - All currencies are subdivided in decimal units (like dinar/fils)
 - All currencies currently in circulation are subdivided in decimal units. (to exclude shillings, pennies) (counter-example: MGA)
 - All currencies are subdivided. (counter-examples: KRW, COP, JPY... Or subdivisions can be deprecated.)
 - Prices can't have more precision than the smaller sub-unit of the currency. (e.g. gas prices)
 - For any currency you can have a price of 1. (ZWL)
 - Every country has its own currency. (EUR is the best example, but also Franc CFA, etc.)
 
https://github.com/[yourname]
[Describe ambitions: type of work, attributes of team, what you want to learn & teach]
[in reverse chronological order, list at most 5 positions or 10 years back, whichever is fewer]
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #! /usr/bin/env python | |
| from boto.ses.connection import SESConnection | |
| import os | |
| import sys | |
| import subprocess | |
| import socket | |
| TMPFILE = '/var/run/postgresql/last-wal-archive-error-file.tmp' | |
| if __name__ == '__main__': | 
I. Create a Middleman project with middleman-ember-template
$ middleman init hello --template=ember
II. Install ember.js package
$ bower install ember
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # | |
| # This is the script responsible for updating our Puppet master data, | |
| # which includes modules, manifests, hiera data, etc. All of this data is | |
| # managed in a git repository and upon "deploy" it is synced into the Puppet | |
| # master. | |
| # | |
| # This script mirrors the remote git repository, looking for branches that | |
| # match "env-*" (such as "env-production" or "env-test"). Each of these branches | |
| # is setup as an environment into the Puppet master's data files. The | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # place this in lib/fakeout.rb | |
| require 'ffaker' | |
| module Fakeout | |
| class Builder | |
| FAKEABLE = %w(User Product) | |
| attr_accessor :report | 
This script installs a patched version of ruby 1.9.3-p194 with patches for boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84). It also includes the new backported GC from ruby-trunk.
Huge thanks to funny-falcon for the performance patches.
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from django.conf import settings | |
| from django.core.mail import EmailMultiAlternatives | |
| from django.template.defaultfilters import striptags | |
| def send_mail(subject, html_message, from_email, recipient_list, fail_silently=False, connection=None): | |
| text_message = striptags(html_message) | |
| recipient_list = getattr(settings, 'EMAIL_RECIPIENTS_OVERRIDE', recipient_list) | |
| msg = EmailMultiAlternatives(subject, text_message, from_email, recipient_list, connection=connection) | |
| msg.attach_alternative(html_message, "text/html") | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # -*- coding: utf-8 -*- | |
| """ | |
| amazon_sender.py | |
| ~~~~~~~~ | |
| Python helper class that can send emails using Amazon SES and boto. | |
| The biggest feature of this class is that encodings are handled properly. | |
| It can send both text and html emails. | |
| This implementation is using Python's standard library (which opens up for a lot more options). | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from django.db import models | |
| from django.db.models import signals | |
| class DeletingFileField(models.FileField): | |
| """ | |
| FileField subclass that deletes the refernced file when the model object | |
| itself is deleted. | |
| WARNING: Be careful using this class - it can cause data loss! This class | |
| makes at attempt to see if the file's referenced elsewhere, but it can get | 
NewerOlder