Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| import ebaysdk | |
| from ebaysdk import finding | |
| api = finding(siteid='EBAY-GB', appid='<REPLACE WITH YOUR OWN APPID>') | |
| api.execute('findItemsAdvanced', { | |
| 'keywords': 'laptop', | |
| 'categoryId' : ['177', '111422'], | |
| 'itemFilter': [ | |
| {'name': 'Condition', 'value': 'Used'}, |
| serialize: function serialize(form) | |
| { | |
| if (!form || form.nodeName !== "FORM") { | |
| return; | |
| } | |
| var i, j, | |
| obj = {}; | |
| for (i = form.elements.length - 1; i >= 0; i = i - 1) { | |
| if (form.elements[i].name === "") { | |
| continue; |
| #!/usr/bin/python | |
| # demo from here: http://pymotw.com/2/urllib2/index.html#uploading-files | |
| import itertools | |
| import mimetools | |
| import mimetypes | |
| from cStringIO import StringIO | |
| import urllib | |
| import urllib2 |
| import sys | |
| from urllib import urlencode | |
| import requests | |
| from urlparse import urlparse, parse_qs | |
| from random import choice | |
| import re | |
| self_id = None # your facebook id here | |
| utc_bday = None # utc timestamp of your birthday |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| public class UsernameValidator{ | |
| private Pattern pattern; | |
| private Matcher matcher; | |
| private static final String USERNAME_PATTERN = "^[a-z0-9_-]{3,15}$"; | |
| #!/usr/bin/python | |
| # Equivalent of "tail -f" as a webpage using websocket | |
| # Usage: webtail.py PORT FILENAME | |
| # Tested with tornado 2.1 | |
| # Thanks to Thomas Pelletier for it's great introduction to tornado+websocket | |
| # http://thomas.pelletier.im/2010/08/websocket-tornado-redis/ | |
| import tornado.httpserver |