- Link: https://github.com/libgdx/libgdx
- Language: Java (native support), Python (using Jython as is explained here)
- License: Apache 2.0
- Description: libGDX is a cross-platform Java game development framework based on OpenGL (ES) that works on Windows, Linux, Mac OS X, Android, your WebGL enabled browser and iOS.
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
| """ | |
| Vamos supor que temos um numero X de clientes e cada cliente tem 2 tipos de | |
| fechamento diferentes: fechamento parcial e fechamento geral. | |
| Além disso, cada cliente tem um padrão para esses arquivos (cada fechamento gera um), já que esses | |
| arquivos serão utilizados em um sistema de terceiros. | |
| A principio, eu pensei que apenas o pattern strategy solucionava o problema... | |
| de acordo com o cliente eu devolvia uma classe especifica que geraria o | |
| arquivo. Mas o problema é que eu esqueci que haviam 2 tipos de fechamento. |
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
| # Baixar o pacote do tibia do site tibia.com | |
| # durante a criação desse script, a versão mais recente era a 10.81 | |
| wget http://static.tibia.com/download/tibia1081.tgz | |
| # desmontar o tar | |
| # o comando tar é responsavel por criar e desmontar arquivos tar | |
| # o xvf quer dizer extrair de manera verbosa e forçada. Ou seja, vai exibir todo o processo de extração e garantir que ele ocorra. | |
| tar xvf tibia1081.tgz | |
| # tentar rodar o jogo |
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
| alexandre@moes ~ $ mkproject -p $(which python3) wifilivresp-stats | |
| #...processo de instalação | |
| (wifilivresp-stats)alexandre@moes ~/Development/wifilivresp-stats $ pip install flask beautifulsoup4 ipython requests | |
| # ...a ideia é deixar esse script rodando em algum lugar para ver de tempos em tempos se isso é verdade ou não | |
| (wifilivresp-stats)alexandre@moes ~/Development/wifilivresp-stats $ ipython | |
| Python 3.4.3 (default, Jul 28 2015, 18:20:59) | |
| In [1]: import requests as r | |
| In [2]: from bs4 import BeautifulSoup as bsoup |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import pprint | |
| import random | |
| import string | |
| def generate_matrix(i_length, j_length, default_value=None): |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import pprint | |
| import random | |
| import string | |
| def generate_matrix(i_length, j_length, default_value=None): |
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
| Error [GCING] 212 in ../../../racket/gc2/../src/bool.c: Function mz_long_double_eqv declared __xform_nongcing__, but includes a function call. | |
| Error [GCING] 248 in ../../../racket/gc2/../src/bool.c: Function double_eqv declared __xform_nongcing__, but includes a function call. | |
| xform: Errors converting | |
| context...: | |
| /tmp/SBo/racket-6.3/src/build/racket/gc2/xform-collects/compiler/private/xform.rkt:8:2: xform | |
| /tmp/SBo/racket-6.3/src/build/racket/gc2/xform-collects/xform/xform-mod.rkt: [running body] | |
| make[4]: *** [xsrc/bool.c] Error 1 | |
| Makefile:208: recipe for target 'xsrc/bool.c' failed | |
| make[4]: Leaving directory '/tmp/SBo/racket-6.3/src/build/racket/gc2' | |
| make[3]: *** [all] Error 2 |
Algo que eu descobri durante um teste....
from pymongo import MongoClient
client = MongoClient()
db = client.test_database
expected_doc = {
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
| #lang racket | |
| (require racket/system) | |
| (require net/ftp) | |
| (define conn (ftp-establish-connection "ftp.ibge.gov.br" | |
| 21 | |
| "anonymous" | |
| "")) |