⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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 node in page.node.walk %} | |
<ul> | |
{% for list_page in node.pages %} | |
{% if list_page.display_in_list %} | |
<li> | |
<h1><a href="{{list_page.url}}">{{list_page.title}}</a></h1> | |
{% if page.excerpt %} | |
<div class="page-excerpt"> | |
{{ render_excerpt(list_page) }} | |
</div> |
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 | |
def fizzbuzzerize(numberRange): | |
for number in numberRange: | |
if number % 15 == 0: | |
yield 'Fizzbuzz' | |
if number % 3 == 0: | |
yield 'Fizz' | |
elif number % 5 == 0: | |
yield 'Buzz' |
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
javascript:(function(){ var body=document.getElementsByTagName("body")[0];var mckayla="http://f.cl.ly/items/1A1w013w0Q3p380a2N3x/mckayla.png";var mckaylaDiv=document.createElement("img");mckaylaDiv.src=mckayla;mckaylaDiv.style.position="absolute";mckaylaDiv.style.width="300px";mckaylaDiv.style.right=0;mckaylaDiv.style.bottom=0;body.appendChild(mckaylaDiv) })(); |
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 the fabric requirements | |
from __future__ import with_statement | |
from fabric.api import * | |
from fabric.contrib.console import confirm | |
# import local_settings.py | |
from local_settings import * | |
# run Django's test framework | |
def test(): |
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 the fabric requirements | |
from __future__ import with_statement | |
from fabric.api import * | |
from fabric.contrib.console import confirm | |
# import local_settings.py | |
from gifhq.local_settings import * | |
""" |