[http://swarm.cs.pub.ro/~razvan/blog/http-repository-sharing-asides-gitweb/] (http://swarm.cs.pub.ro/~razvan/blog/http-repository-sharing-asides-gitweb/)
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
Konnichiwa! |
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
django==1.6.2 | |
django-extensions==1.3.0 | |
django-model-utils==1.3.0 | |
redis==2.6.2 | |
South==0.8.4 | |
django-compressor==1.3 | |
BeautifulSoup==3.2.1 | |
easy-thumbnails==1.4 | |
rq==0.3.8 | |
django-rq==0.5.1 |
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
11:47 < za> sugiana: cara otomasi akses info (query) ke ib mandiri gimana? | |
11:48 < sugiana> pakai mechanize | |
11:48 < sugiana> browser by script | |
11:49 < sugiana> situ pakai debian ? | |
11:50 < za> sugiana: 'situ' mengacu siapa? :B | |
11:50 < za> ini ya mas https://pypi.python.org/pypi/mechanize/ ? | |
11:50 < sugiana> iya, situ is last except me | |
11:52 < za> saya ada mesin debian/ubuntu :B | |
11:53 < sugiana> buat /etc/apt/sources.list.d/rab.list isinya: deb http://debian.rab.co.id/custom ./ | |
11:53 < sugiana> apt-get update; apt-get install internet-banking |
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 mock | |
from django.test import TestCase, Client | |
import datetime | |
class StubDate(datetime.datetime): | |
pass | |
class TestApp(TestCase): | |
@mock.patch('app.views.datetime.datetime', StubDate) #app is the $django_application_name |
Search for python3 pandas package
$ apt-cache search pandas
python-pandas - data structures for "relational" or "labeled" data
python-pandas-lib - low-level implementations and bindings for pandas
python3-pandas - data structures for "relational" or "labeled" data - Python 3
python3-pandas-lib - low-level implementations and bindings for pandas - Python3
Instead of installing in a system-wide environment, we can setup in a localidzed, separated environment.
Create new virtualenv
:
$ virtualenv --python=`which python3` open-data-crunch
Activate open-data-crunch virtualenv
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
a = 'Newton' | |
for i in range(1, len(a)+1): | |
print a[-i] |
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
a = 'Newton' | |
for i in range(1, len(a)+1): | |
print(a[-i], end="") |
OlderNewer