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
exception | |
Traceback (most recent call last): | |
File "manage.py", line 10, in <module> | |
execute_from_command_line(sys.argv) | |
File "/var/vcap.local/dea/apps/crowdcomputer-0-e93b72c7ccdc2e6969dda5a7c901812f/python/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line | |
utility.execute() | |
File "/var/vcap.local/dea/apps/crowdcomputer-0-e93b72c7ccdc2e6969dda5a7c901812f/python/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute | |
self.fetch_command(subcommand).run_from_argv(self.argv) | |
File "/var/vcap.local/dea/apps/crowdcomputer-0-e93b72c7ccdc2e6969dda5a7c901812f/python/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv | |
self.execute(*args, **options.__dict__) |
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
<body> | |
<div class="container"> | |
<h3 class="muted">social - feed</h3> | |
<div class="social-feed-container1"> | |
</div> | |
<div class="social-feed-container2"> | |
</div> | |
<h6 class="credits muted"><a href="https://github.com/pavelk2/social-feed" target="_blank">Social-feed</a> jquery plugin, developed by <a target="_blank" href="http://kucherbaev.com">Pavel Kucherbaev</a></h6> | |
</div> | |
<script> |
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 (options.show_media) { | |
if (element.attachments) { | |
$.each(element.attachments,function(index){ | |
console.log(this); | |
if (this.type == 'video') | |
post.attachment = '<img class="attachment" src="' + this.video.image_big + '" />'; | |
if (this.type == 'photo'){ | |
console.log(this.photo.src_big); | |
post.attachment = '<img class="attachment" src="' + this.photo.src_big + '" />'; | |
} |
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
{{?it.attachment}} | |
<style type="text/css"> | |
.social-feed-background { | |
background-image: url({{=it.attachment.src}}); | |
} | |
</style> | |
<div social_feed_id={{=it.id}} dt_create="{{=it.dt_create}}" class="messages" > | |
<div class="social-feed-background"></div> | |
<div class="user"> |
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
$("body").bind("paste", function(ev) { | |
var $this = $(this); | |
var original = ev.originalEvent; | |
var file = original.clipboardData.items[0].getAsFile(); | |
var reader = new FileReader(); | |
reader.onload = function (evt) { | |
var result = evt.target.result; | |
var result = evt.target.result; | |
var arr = result.split(","); | |
var clip_data = arr[1]; // raw base64 |
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
$("body").bind("paste", function(ev) { | |
var $this = $(this); | |
var original = ev.originalEvent; | |
var file = original.clipboardData.items[0].getAsFile(); | |
var reader = new FileReader(); | |
reader.onload = function (evt) { | |
var result = evt.target.result; | |
var result = evt.target.result; | |
var arr = result.split(","); | |
var clip_data = arr[1]; // raw base64 |
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
<li class="swipeout dataitem" instance-id="{{item.id}}"> | |
<input type = 'hidden' name='dataitem_{{item.id}}_id' value='{{item.id}}'> | |
<input type = 'hidden' name='dataitem_{{item.id}}_answer' class='dataitem_answer' value='none'> | |
<div class="swipeout-content" style="-webkit-transform: translate3d(0px, 0px, 0px);"> | |
<a href="#" class="item-link item-content"> | |
<div class="item-inner"> | |
<div class="item-title-row"> | |
<div class="item-title">{{item.value.user.screen_name}}</div> | |
<div class="item-after">{{item.additional}}</div> | |
</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
<li class="swipeout dataitem" instance-id="{{item.id}}"> | |
<input type = 'hidden' name='dataitem_{{item.id}}_id' value='{{item.id}}'> | |
<input type = 'hidden' name='dataitem_{{item.id}}_answer' class='dataitem_answer' value='none'> | |
<div class="swipeout-content" style="-webkit-transform: translate3d(0px, 0px, 0px);"> | |
<a href="#" class="item-link item-content"> | |
<div class="item-inner"> | |
<div class="item-title"> | |
<div class="item-title">{{item.value.user.screen_name}}</div> | |
<div class="item-after">{{item.additional}}</div> | |
</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
<li class="swipeout dataitem" instance-id="{{item.id}}" id="dataitem{{item.id}}"> | |
<input type = 'hidden' name='dataitem_{{item.id}}_id' value='{{item.id}}'> | |
<input type = 'hidden' name='dataitem_{{item.id}}_answer' class='dataitem_answer' value='none'> | |
<div class="swipeout-content" style="-webkit-transform: translate3d(0px, 0px, 0px);"> | |
<div class="item-inner" style="padding-left:10px;"> | |
<div class="item-text"><b>Do you understand from the text:</b></div> | |
<div class="item-text" style='padding-left:10px;' id="dataitem_text_{{item.id}}">{{item.value.sentence}}</div> | |
<div class="item-text"><b>that: {{item.value.name1}} -> {{item.value.relationship}} -> {{item.value.name2}} ?</b></div> | |
</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
import os | |
directory = '/Users/pavelk/Dropbox/Design/SocialInformatics' | |
output_file = 'output/listing.txt' | |
def recurseFolderListing(directory): | |
listing = [] | |
for dirname, dirnames, filenames in os.walk(directory): | |
# print path to all subdirectories first. | |
for subdirname in dirnames: |
OlderNewer