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
| {% tag_cloud_for_model fanfic.Story as tag_cloud %} | |
| {% for tag in tag_cloud %} | |
| <li><a class="tag-{{ tag.font_size }}" href="{% url story_tag_detail tag %}">{{ tag }} {{ tag.count }}</a></li> | |
| {% endfor %} |
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
| {% get_tagcloud as tag_cloud for 'fanfic.Story' %} | |
| {% for tag in tag_cloud %} | |
| <li><a class="tag-{{ tag.weight|floatformat:0 }}" href="{% url story_tag_detail tag %}">{{ tag }} ({{ tag.num_times }})</a></li> | |
| {% endfor %} |
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
| # Some old code that I was helping someone with. | |
| GRAINS_PER_POUND = 7000.0 | |
| POUNDS_PER_SLUG = 32.175 | |
| print "Bullet weight in grains?" | |
| weight = float(raw_input()) / GRAINS_PER_POUND | |
| print "Muzzle velocity in FPS" | |
| velocity = float(raw_input()) |
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
| { | |
| "AWSTemplateFormatVersion": "2010-09-09", | |
| "Metadata": { | |
| "AWS::CloudFormation::Designer": { | |
| "7b177dd4-91c8-47b2-927a-ef2a82f51304": { | |
| "size": { | |
| "width": 60, | |
| "height": 60 | |
| }, | |
| "position": { |