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
Carta Qtde | |
Taiga 1 | |
Dispel 2 | |
Annul 2 | |
Krosan Verge 1 | |
Krosan Grip 2 | |
Ogre Battledriver 1 | |
Moldgraf Monstrosity 1 | |
Emeria Shepherd 1 | |
Desolation Twin 1 |
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 re | |
import json | |
import requests | |
from bs4 import BeautifulSoup | |
with open('wantlist.txt') as f: | |
for i in f.readlines(): | |
i = i.strip() | |
# try: |
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 i in range(len(alist)): | |
print alist[i] |
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
bind = "127.0.0.1:8666" | |
workers = 5 | |
pidfile = "/home/deploy/run/portaliesb.pid" | |
accesslog = "/home/deploy/logs/portaliesb/stdout.log" | |
errorlog = "/home/deploy/logs/portaliesb/stderr.log" | |
secure_scheme_headers = {'X-FORWARDED-PROTOCOL': 'http', | |
'X-FORWARDED-PROTO': 'http', | |
'X-FORWARDED-SSL': 'off'} |
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
[program:portaliesb] | |
directory = /home/deploy/iesb/project | |
command = /home/deploy/.venvs/iesb/bin/gunicorn_django -c /home/deploy/iesb/deploy/gunicorn.conf.py | |
user = deploy | |
group = deploy | |
stdout_logfile = /home/deploy/logs/iesb/stdout.log | |
stderr_logfile = /home/deploy/logs/iesb/stderr.log | |
autostart=true | |
autorestart=true |
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
server { | |
listen 80; | |
client_max_body_size 20M; | |
access_log /var/log/nginx/example.log; | |
location / { | |
proxy_pass http://127.0.0.1:8666; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
} |
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
PRICE = 28 | |
DISCOUNT = [1, 0.95, 0.9, 0.8, 0.75] | |
def calc_partial(books): | |
quantity = len(books) | |
return DISCOUNT[quantity - 1] * quantity * PRICE | |
def make_groups(books): |
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
$("a[data-target=ajax]").on("click", function(e){ | |
e.preventDefault(); | |
var url = $(this).attr("href"); | |
$.get(url, function(data) { | |
alert(data); | |
location.reload(); | |
}); | |
}); |
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
<p><a href="#h2href:{"titulo":"App::teste resize","link":"","pagina":"","id_site":"48","modulo":{"schema":"foto_13395239707","id_pk":"44","icon":"","id_site":"48","id_treeapp":"15","titulo":"teste resize","id_site_origem":"48","id_tree_origem":"15"},"rss":{"schema":"","id_site":"48"},"opcoes":{"abrir":"_self","largura":"","altura":"","center":"","scroll":"","origem":""},"dinamico":""}">teste</a></p><p> </p> | |
<a href="http://publica.divirta-se.cmspublica.com.br/app/noticia/#h2href:{"titulo":"App::Galeria 1","link":"","pagina":"","id_site":"48","modulo":{"schema":"foto_13395239707","id_pk":"37","icon":"","id_site":"48","id_treeapp":"15","titulo":"Galeria 1","id_site_origem":"48","id_tree_origem":"15"},"rss":{"schema":"","id_site":"48"},"opcoes":{"abrir":"_self","largura":"","altura":"","center":"","scroll":"","origem":""},"dinamico":""}"><p>sadsdas </p></a> |
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
[MASTER] | |
# Specify a configuration file. | |
#rcfile= | |
# Python code to execute, usually for sys.path manipulation such as | |
# pygtk.require(). | |
#init-hook= | |
# Profiled execution. |
NewerOlder