This file contains 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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>KO Options | Coca-Cola Company (The) Common Stock - Yahoo! Finance</title><script type="text/javascript" src="http://l.yimg.com/a/i/us/fi/03rd/yg_csstare_nobgcolor.js"></script><link rel="stylesheet" href="http://l.yimg.com/zz/combo?kx/yucs/uh3/uh/1075/css//uh_non_mail-min.css&kx/yucs/uh_common/meta/3/css/meta-min.css&kx/yucs/uh3/top_bar/317/css/no_icons-min.css&kx/yucs/uh3/search/css/588/blue_border-min.css&kx/yucs/uh3/breakingnews/css/1/breaking_news-min.css&kx/yucs/uh3/get_the_app/145/css/get_the_app-min.css&kx/yucs/uhc/alert/134/css/alert-min.css&bm/lib/fi/common/p/d/static/css/2.0.356945/2.0.0/mini/yfi_yoda_legacy_lego_concat.css&bm/lib/fi/common/p/d/static/css/2.0.356945/2.0.0/mini/yfi_symbol_suggest.css&bm/lib/fi/common/p/d/static/css/2.0.356945/2.0.0/mini/yui_helper.css&bm/lib/fi/common/ |
This file contains 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
# Sample hosts file in INI format. | |
[webservers] | |
web1.example.com ansible_ssh_host=w1.example.net | |
web2.example.com ansible_ssh_port=1022 | |
[webservers:vars] # Comment on a section | |
webvar=blah # Comment on an option | |
[dbservers] |
This file contains 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
$the_cow = <<"EOC"; | |
$thoughts ^__^ | |
$thoughts ($eyes)\\_______ | |
(__)\\ (A) )\\/\\ | |
$tongue ||----w.| | |
|| || | |
EOC |
This file contains 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
import django.db.models.sql.aggregates | |
import django.db.models.aggregates | |
class AvgWithZeroForNull(django.db.models.sql.aggregates.Avg): | |
sql_template = 'COALESCE(%(function)s(%(field)s), 0)' | |
django.db.models.sql.aggregates.AvgWithZeroForNull = AvgWithZeroForNull | |
class AvgWithZeroForNull(django.db.models.aggregates.Avg): | |
name = 'AvgWithZeroForNull' | |
django.db.models.aggregates.AvgWithZeroForNull = AvgWithZeroForNull |
This file contains 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
--- | |
- hosts: all | |
connection: local | |
tasks: | |
- name: ping | |
action: ping |
This file contains 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 pkg_resources import parse_version | |
def generate_sortable_version(version): | |
''' | |
Generate a flat string from a version number than can be sorted with normal | |
string comparisons. | |
''' | |
return '|'.join(['%-8s' % x for x in parse_version(version)]) |
This file contains 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 | |
import os | |
import sys | |
def find_commands(management_dir): | |
# Modified version of function from django/core/management/__init__.py. | |
command_dir = os.path.join(management_dir, 'commands') | |
commands = [] | |
try: | |
for f in os.listdir(command_dir): |
NewerOlder