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
Estou procurando pra troca (ou compra quando tiver $ :]): | |
* MB micro-atx LGA 1150 (Asus, Asrock, Gigabyte ou MSI) | |
* Core I7 LGA 1150, não faço questao de um proc K. | |
* Cooler Xigmatek Dark Knight II SD1483 para I5 2500 LGA 1155. | |
* Coolers Noctua DH 15, Noctua DH 14 ou Phanteks PH-TC14PE para LGA 1150/11 55. | |
* Bom gabinete Micro ATX, tamanho pequeno, em especial o TT Core V21,mas se tiver outro, fale comigo. Precisa caber cooler grandes (159 (A) x 140 (L) x 171 (P) mm a 160,02 (A) x 149,86 (L) x 160,78 (P)) e só 1 HD + 1 SSD. USB3 é obrigatório. | |
* Memórias 2x8G 1866mhz (ou mais), com dissipador baixo, ex Hyper X Fury, Hyper X Savage ou aquelas Corsair/Crucial/Patriot de dissipador baixo. | |
Estou trocando/vendendo: |
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
from decimal import Decimal | |
from geopy.distance import great_circle # or distance | |
from seuapp.models import Store | |
# decimal places degrees distance | |
# --------------- ------- -------- | |
# 0 1 111 km | |
# 1 0.1 11.1 km | |
# 2 0.01 1.11 km | |
# 3 0.001 111 m |
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
TROCA ou VENDA, São Paulo/SP | |
Memória para notebook, 8G em pares de 4G, 1333mhz. Foram usadas em um notebook gamer: http://sp.olx.com.br/sao-paulo-e-regiao/computadores-e-acessorios/memoria-p-notebook-corsair-2x4g-1333mhz-modelo-cmsa8gx3m2a1333c9-kit-8g-108922442 | |
R$ 350 cada par. | |
------------------------------------------------------- | |
MiniPC / HTPC Zotac Zbox ID 34 com player BluRay. Consumo de 1.4W em iddle a 56W assistindo um bluray. A maioria dos processadores de hoje fica acima dos 85W! http://sp.olx.com.br/sao-paulo-e-regiao/computadores-e-acessorios/minipc-zotac-zbox-id-34-com-blu-ray-108860261 | |
R$ 600 |
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
from django import template | |
register = template.Library() | |
@register.simple_tag(takes_context=True) | |
def as_active_url(context, url, css_class='active'): | |
""" | |
Usage: | |
{% url 'foobar' as url %} | |
<li class="{% as_active_url url %}"><a href="{{ url }}">URL 1</a></li> |
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
diff -r 7b7bff42522a requirements.txt | |
--- a/requirements.txt Tue Jun 16 12:22:38 2015 -0700 | |
+++ b/requirements.txt Sun Aug 09 14:41:14 2015 -0300 | |
@@ -1,4 +1,4 @@ | |
funcparserlib==0.3.6 | |
mock>=1.0.1 | |
passlib>=1.6.1 | |
-python-ldap>=2.4.10 | |
+pyldap>=2.4.10 | |
diff -r 7b7bff42522a setup.py |
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
[felipe@char img_emails]$ python list.py | |
0: ~/img_emails/sample/10000.png > [email protected] | |
1: ~/img_emails/sample/100000.png > [email protected] | |
2: ~/img_emails/sample/100001.png > gianfrancoAtedeschi@geopecAit | |
3: ~/img_emails/sample/100002.png > [email protected] | |
4: ~/img_emails/sample/100004.png > tedeschisrl©pec.it | |
5: ~/img_emails/sample/100006.png > [email protected] | |
6: ~/img_emails/sample/100007.png > gia nfra nco_tedeschi@ Iegalmail.it | |
7: ~/img_emails/sample/100008.png > [email protected] | |
8: ~/img_emails/sample/100009.png > [email protected] |
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
class DisableMigrations(dict): | |
def __contains__(self, item): | |
return True | |
def __getitem__(self, item): | |
return "notmigrations" | |
MIGRATION_MODULES=DisableMigrations() |
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
Como nos comportaremos na descida da Rodovia Mogi-Bertioga. | |
A Rod. Mogi-Bertioga é o último trecho dessa rota, mas entretanto tem um problema: falta acostamento no trecho da descida da serra do mar, um trecho de aproximadamente 15km onde 90% é descida mesmo. | |
O trafégo varia de leve a itenso e para descer só há uma pista de rolamento e é sem acostamento, a descida também é intensa. Dai o perigo. | |
Para uma descida segura, vamos nos agrupar em alguns pontos durante a descida. É importante descermos todos juntos. Paradas: | |
1. KM 77, Balança de caminhões, tem restaurante, provavelmente banheiro e com sorte uma bomba para encher pneu ;). | |
2. KM 80, agrupar no km 80 para descermos todos juntos. Depois do KM 80 acaba o acostamento e só teremos áreas de refúgio até o fim da descida. São 13 áreas de refúgio que listo mais abaixo. |
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
def step_date_range(start, end, **step): | |
""" | |
Returns a range | |
:param start: datetime | |
:param end: datetime | |
:param step: keywords used in timedelta | |
:return: generator of date ranges | |
>>> list(step_date_range(datetime(2014, 12, 22, 0, 0), |
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
#!/bin/bash | |
# based on http://www.snip2code.com/Snippet/165926/Check-for-ipdb-breakpoints-git-hook | |
pdb_check=$(git grep -E -n '[ ;]i?pdb') | |
if [ ${#pdb_check} -gt 0 ] | |
then | |
echo "COMMIT REJECTED: commit contains code with break points. Please remove before commiting." | |
echo $pdb_check | |
exit 1 | |
else |