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 maya import cmds # wrong | |
class TabController(object): | |
def __init__(self, parent): | |
self.main_ui = parent | |
def build_ui(self): | |
# construct UI | |
raise NotImplementedError() |
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
class Thing(object): | |
__run = True | |
run = True | |
def check_run(self): | |
print "run: %s" % self.run | |
print "__run: %s" % self.__run | |
thing = Thing() |
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 pymel.core.general import itemFilter | |
types = maya.gimmeAllObjectTypes() | |
defaultNamedObjects = [] | |
for t in types: | |
objs = listFilter(byName=t.name+'*') | |
if objs: | |
defaultNamedObjects += objs |
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
CREATE TABLE user_accounts ( | |
id VARCHAR(25) NOT NULL, | |
-- ... snip | |
PRIMARY KEY (id), | |
) | |
CREATE TABLE user_blogsettings ( | |
id INTEGER NOT NULL AUTO_INCREMENT, | |
user_id VARCHAR(128), | |
-- ... snip |
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
import sys | |
import os | |
sys.path.append(os.path.abspath('.')) | |
sys.path.append(os.path.abspath('markbox')) | |
print sys.path | |
# from markbox.models import UserBlogSettings | |
from sqlalchemy import create_engine |
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
# __init__.py | |
from apps.home.views import home | |
app.register_blueprint(home) | |
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
{% if post.meta.link %}<h4 class="postTitle"><a href="{{ post.meta.link }}"><i class="icon-share"></i></a> <a href="{{ post.meta.link }}">{{ post.title }}</a></h3>{% else %} | |
<h3 class="postTitle"><a href="{{ site.blog_url }}{{ post.permalink }}">{{ post.title }}</a></h4> | |
<div class="date">{{ post.published.strftime('%Y-%m-%d %H:%M') }}</div> | |
{% endif %} | |
{% if not post.meta.link %}<div> | |
{{ post.content }} | |
</div>{% endif %} |
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
Proposed payload object | |
- payload | |
- total_score: int | |
- relevant_questions: array | |
- style | |
- reading_level: int (not currently returned) | |
- sentiment: int (not currently returned) | |
- formality: int (not currently returned) | |
- editorial_level: int (not currently returned) | |
- phrase |
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
Proposed payload object | |
- payload | |
- total_score: int | |
- relevant_questions: array | |
- style | |
- reading_level: int (not currently returned) | |
- sentiment: int (not currently returned) | |
- formality: int (not currently returned) | |
- editorial_level: int (not currently returned) | |
- phrase |
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
Last login: Mon Jan 14 13:45:11 on ttys002 | |
argent:main sivy$ curl -I http://www.engadget.com/ | |
HTTP/1.1 301 Moved Permanently | |
Date: Mon, 14 Jan 2013 20:50:22 GMT | |
Server: Apache/2.2 | |
Location: http://www.engadget.com/topics/mobile/ | |
Content-Type: text/html; charset=iso-8859-1 | |
argent:main sivy$ curl -I http://www.engadget.com/topics/mobile/ | |
HTTP/1.1 301 Moved Permanently |