⌘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 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
<script> | |
document.addEventListener("DOMContentLoaded", function() { | |
//Get the contents | |
var source = document.querySelector("#results-template").innerHTML; | |
//Compile them into a template | |
template = Handlebars.compile(source); | |
// add the formatName helper |
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
<section class="wrapper style1 container special"> | |
<div class="row"> | |
<h2 class="space-above">Latest Posts</h2> | |
</div> | |
<div class="row"> | |
{% for article in all_articles %} | |
{% if loop.index < 4 %} | |
<div class="4u"> | |
<section> |
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 flask import Flask, render_template, jsonify, request | |
from threading import Timer, Thread | |
from time import sleep | |
app = Flask(__name__) | |
@app.route("/api/<method>") | |
def api(method): | |
data = { |
A list of Python Flask example project repositories
Example Flask application illustrating some of [Matt's] common practices blog post
Manekineko is a Flask template/bootstrap/boilerplate application.
A microblogging web application written in Python and Flask that [Miguel] developed as part of [his] Flask Mega-Tutorial series.blog post
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
description "flask example" | |
author "[email protected]" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
script | |
cd /<your-application-path>/ |
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
$cordovaOauth.twitter(appConfig.TW_CLIENT_ID, appConfig.TW_SECRET).then(function(result) { | |
// $localStorage.twitterToken = result.access_token; | |
console.log(result); | |
$location.path("/profile"); | |
}, function(error) { | |
alert("There was a problem signing in! See the console for logs"); | |
console.log(error); | |
}); |
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
Dockerfile | |
config.xml | |
.sass-cache | |
.editorconfig | |
.io-config.json | |
.dockerignore | |
hooks/ | |
platforms/ | |
node_modules/ |
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
def greeting(): | |
print 'hello' | |
userInput = raw_input('> ') | |
print userInput | |
if userInput == 'foo': | |
foo() | |
elif userInput == 'bar': | |
bar() |