Anonymous avatar Anonymous committed 95d2876

First import :)

Comments (0)

Files changed (8)

+syntax: glob
+DEMO/__pycache__/
+DEMO/beer/bin
+DEMO/beer/include/
+DEMO/beer/lib/
+DEMO/distribute-0.6.28.tar.gz
+DEMO/ftp_codemotion/bin
+DEMO/ftp_codemotion/include
+DEMO/ftp_codemotion/lib
+DEMO/pyftpdlib-0.7.0
+DEMO/restsample/bin
+DEMO/restsample/include
+DEMO/restsample/lib
+*.pyc
+DEMO/virtualenv.py
+DEMO/ftp_codemotion/local
+DEMO/restsample/local

DEMO/beer/drinker.py

+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+from bottle import route, run, template
+
+@route('/')
+def index():
+	return "Se vuoi una birra scrivi il tuo nome!"
+
+#@route('/birra-per')
+@route('/birra-per/')
+@route('/birra-per/:name')
+def make_me_a_beer(name='Chris'):
+	return template('Birra in arrivo per {{name}}!!!', name=name)
+
+run(host='localhost', port=8080)
+

DEMO/ftp_codemotion/codemotion_ftp.py

+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+from pyftpdlib import ftpserver
+
+FTP_PATH = '/tmp'
+
+authorizer = ftpserver.DummyAuthorizer()
+authorizer.add_user("cstrap", "12345", FTP_PATH, perm="elradfmw")
+authorizer.add_anonymous(FTP_PATH)
+handler = ftpserver.FTPHandler
+handler.authorizer = authorizer
+address = ("127.0.0.1", 7000)
+ftpd = ftpserver.FTPServer(address, handler)
+ftpd.serve_forever()
+
+
+

DEMO/py-script-demo/drinker.py

+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+from bottle import route, run, template
+
+@route('/')
+def index():
+	return "Se vuoi una birra scrivi il tuo nome!"
+
+@route('/birra-per/')
+@route('/birra-per/:name')
+def make_me_a_beer(name='Chris'):
+	return template('Birra in arrivo per {{name}}!!!', name=name)
+
+run(host='localhost', port=8080)
+

DEMO/py-script-demo/requirements.txt

+bottle==0.11.3
+distribute==0.6.27

DEMO/restsample/restsample.py

+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import json
+from bottle import route, run
+
+collect_data = {}
+
+@route('/')
+def index():
+	return collect_data
+
+@route('/:name', method='GET')
+def get_item(name=''):
+	if name == '' or not collect_data.has_key(name):
+		return {'success': False}
+	return {name: collect_data.get(name, '')}
+
+@route('/:key/:value', method='PUT')
+def put_item(key='', value=''):
+	collect_data[key] = value
+	return {'success': True}
+
+@route('/:name', method='DELETE')
+def del_item(name=''):
+	if name == '' or not collect_data.has_key(name):
+		return {'success': False}
+	collect_data.pop(name)
+	return {'success': True}
+	
+run(host='localhost', port=8000, debug=True)
+
Add a comment to this file

SLIDE/IlPitoneAureoELaMagiaDeiMerlettiAlTombolo.odp

Binary file added.

Add a comment to this file

SLIDE/IlPitoneAureoELaMagiaDeiMerlettiAlTombolo.pdf

Binary file added.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.