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
| <%* | |
| let raindrop = tp.user.raindrop; | |
| let collections = await raindrop.collections(); | |
| let collection = await tp.system.suggester((item) => item.title, collections); | |
| let raindrops = await raindrop.raindrops(collection._id); | |
| let drop = await tp.system.suggester((item) => item.title, raindrops); | |
| drop = await raindrop.raindrop(drop._id); | |
| let title = drop.title | |
| let url = drop.link |
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_cmake_property(_variableNames VARIABLES) | |
| list (SORT _variableNames) | |
| foreach (_variableName ${_variableNames}) | |
| message(STATUS "${_variableName}=${${_variableName}}") | |
| endforeach() |
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
| let x0 be the skill of team x as 0 (at positions 0 through n - 1) | |
| let y be opponent 1 skill at x - 1 (or n - 1) if negative | |
| let w be opponent 2 skill at (x + 1) % n | |
| P(x0 | x0vy, wvx0) = P(x0) * P(x0vy, wvx0 | x0) / P(x0vY, wvx0) | |
| = P(x0) * P(x0vy | x0) * P(wvx0 | x0) / P(x0vY, Wvx0) | |
| = P(x0) * P(x0vy | x0) * P(wvx0 | x0) / (P(x0) * P(x0vy | x0) * P(wvx0 | x0) | |
| + P(x1) * P(x0vy | x1) * P(wvx1 | x1) | |
| + P(x2) * P(x2vy | x2) * P(wvx2 | x2) | |
| + P(x3) * P(x3vy | x3) * P(wvx3 | x3)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| {% for post in posts %} | |
| {% include "blog/includes/post.html" %} | |
| <a href="http://russellmyers.com/blog/{{ post.slug }}#disqus_thread">Comments</a> | |
| {% endfor %} | |
| <script type="text/javascript"> | |
| var disqus_shortname = 'russellmyers'; | |
| (function () { | |
| var s = document.createElement('script'); s.async = true; | |
| s.type = 'text/javascript'; |
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
| <form action="/blog/add-comment/{{ post.slug }}" method="post">{% csrf_token %} | |
| <script type="text/javascript" | |
| src="http://www.google.com/recaptcha/api/challenge?k=<insert_public_key>"> | |
| </script> | |
| <noscript> | |
| <iframe src="http://www.google.com/recaptcha/api/noscript?k=<insert_public_key>" | |
| height="300" width="500" frameborder="0"></iframe><br> | |
| <textarea name="recaptcha_challenge_field" rows="3" cols="40"> | |
| </textarea> | |
| <input type="hidden" name="recaptcha_response_field" |
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
| map <M-Right> :bn!<CR> | |
| map <M-Left> :bp!<CR> |
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
| {% with total=post.comment_set.all.count %} | |
| <a href="/blog/{{ post.slug }}#comments">{{ total }} Comment{{ total|pluralize }}</a> | |
| {% endwith %} |
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 autoslug import AutoSlugField | |
| class Post(models.Model): | |
| title = models.CharField(max_length=120, unique=True) | |
| slug = AutoSlugField(populate_from='title', max_length=50, unique=True) | |
| body = models.CharField() | |
| posted = models.DateField(auto_now=True) | |
| def __unicode__(self): |
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
| sudo pip install django-autoslug |