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> | |
<html> | |
<head> | |
<title>Twitter Card Example</title> | |
<meta name="twitter:card" content="summary_large_image"> | |
<meta name="twitter:site" content="@monokrome"> | |
<meta name="twitter:creator" content="@monokrome"> | |
<meta name="twitter:title" content="A Twitter Cards Example"> |
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
{% if not is_viewing_all %}<a href="your_url_here">View All</a>{% endif %} |
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
angular.module 'application' | |
.factory 'analysis', [ | |
'$http' | |
].concat ($http) -> | |
$http.get '/analysis/journeying.json' | |
.then (response) -> response.data |
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
{ | |
# WTF, it's a comment?! | |
"this": "is", | |
"json": [ | |
"because", | |
"I", | |
"like", | |
"typing", | |
"extra", | |
"characters", |
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
{% compress css %} | |
<link rel=stylesheet type=text/css href="something.css{{ gzip_extension }}" /> | |
{% endcompress css %} |
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
conf.add_view( | |
) |
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
conf.add_view( | |
) |
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
task_name: dependencies in order | |
things | |
to | |
do | |
after | |
other_task: dependencies different order | |
things | |
to | |
do |
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
{% for person in people %} | |
{% with profile as people.get_profile %} | |
{{ person.username }} has {{ profile.points }} points. | |
{% endwith %} | |
{% endfor %} |
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
class GenericModel(models.Model): | |
model_type = models.CharField(max_length=16) | |
def __init__(self, *args, **kwargs): | |
for related_object in self._meta.get_all_related_objects(): | |
if not issubclass(related_object.model, self.__class__): | |
continue | |
self.model_type = '{0}.{1}'.format(self._meta.app_label, related_object.__class__.__name__.lower()) |