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
Internal Server Error: /editteam/8512/ | |
Traceback (most recent call last): | |
File "/home/ubuntu/SchoolIdolAPI/env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
response = wrapped_callback(request, *callback_args, **callback_kwargs) | |
File "./web/views.py", line 732, in editteam | |
'ownedcard': findOwnedCard(form.cleaned_data['card' + str(i)], account.deck), | |
File "/home/ubuntu/SchoolIdolAPI/env/local/lib/python2.7/site-packages/django/db/models/manager.py", line 92, in manager_method | |
return getattr(self.get_queryset(), name)(*args, **kwargs) | |
File "/home/ubuntu/SchoolIdolAPI/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 446, in update_or_create | |
obj.save(using=self.db) |
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
How it would work | |
People will still use facebook to organize trades: the only difference is that to verify the accounts and have middlemen, they need to follow this procedure: | |
- People have to create their account on School Idol Tomodachi and add their cards (at least URs + SRs) | |
- When they click on "Give away your account" or "Trade your account", they get a form: | |
- They have to upload a screenshot of their transfer code or write down their transfer code | |
- They can select whether they want to organize the giveaway on School Idol Tomodachi or somewhere else |
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
{ | |
'max_stats':{ | |
'Smile':5380, | |
'Pure':5340, | |
'Cool':5350 | |
}, | |
'total_cards':857, | |
'years':[ | |
u'Second', | |
u'First', |
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 f in *\ *; do mv "$f" "${f// /_}"; done |
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
# download all image in current folder, copy hover in /tmp/hover | |
for f in *\ *; do mv "$f" "${f// /_}"; done # remove space in filenames | |
mkdir small | |
mkdir large | |
i=0; for img in *.png; do composite -gravity Center /tmp/hover.png $img small/background$i.png; i=$((i+1)); done | |
cd small | |
for img in *.png; do convert $img -resize 1500x1500 ../large/$img; done |
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 urllib2, json | |
api_key = 'your_disqus_api_key' | |
forum = 'your_forum_shortname' | |
f = urllib2.urlopen('https://disqus.com/api/3.0/forums/listThreads.json?api_key=' + api_key + '&forum=' + forum + '&limit=100') | |
data = json.loads(f.read()) | |
total = 0 | |
for thread in data['response']: |
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 agithub.py from https://github.com/jpaugh/agithub | |
from agithub import Github | |
username = 'yourusername' | |
password = 'yourpassword' | |
from_owner = username # Can be an organization | |
from_repo = 'yourrepo' | |
to_owners = [username, username] # Can be organizations |
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 agithub.py from https://github.com/jpaugh/agithub | |
from agithub import Github | |
username = 'yourusername' | |
password = 'yourpassword' | |
owner = username # Can be an organization | |
repo = 'YourRepo' | |
assignee = username | |
labels = ['task'] |
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
convert image.png -bordercolor white -border 1x1 -alpha set -channel RGBA -fuzz 20% -fill none -floodfill +0+0 white -shave 1x1 image.png |
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
inkscape -z -e test.png -w 1024 -h 1024 test.svg |