I hereby claim:
- I am tzangms on github.
- I am tzangms (https://keybase.io/tzangms) on keybase.
- I have a public key whose fingerprint is 599D 62E0 EF68 B7EA DA68 4C9D 0CCB 4456 9C3B BCF1
To claim this, I am signing this object:
$(function() { | |
var uploader = new plupload.Uploader({ | |
runtimes : 'flash,html5,silverlight,html4', | |
url : plupload_url, | |
browse_button : 'pickfiles', | |
container : 'plupload_container', | |
max_file_size : '150mb', | |
chunk_size: '1mb', | |
multipart: true, | |
unique_names : true, |
<?xml version="1.0" encoding="UTF-8"?> | |
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom"> | |
<channel> | |
{% if podcast.new_feed_url %}<itunes:new-feed-url>{{ podcast.new_feed_url }}</itunes:new-feed-url>{% endif %} | |
<atom:link href="http://{{ request.get_host }}{{ podcast.get_absolute_url }}rss/" rel="self" type="application/rss+xml" /> | |
<title><![CDATA[{{ podcast.title|striptags|fix_ampersands }}]]></title> | |
<link>http://{{ request.get_host }}{{ podcast.get_absolute_url }}</link> | |
<description><![CDATA[{{ podcast.description|striptags|fix_ampersands }}]]></description> | |
<language>zh-TW</language> |
import sys | |
import requests | |
import urllib | |
PUTIO_ACCESS_TOKEN = '<token>' | |
PUTIO_API_URL = 'https://api.put.io/v2/files/upload' | |
url = sys.argv[1] |
""" | |
Requirements: | |
* A Wordpress Blog | |
* Ghost export file (json). | |
* Python Packages: python-wordpress-xmlrpc | |
>>> pip install python-wordpress-xmlrpc | |
WARNING: |
@detail_route() | |
def posts(self, request, pk=None): | |
""" | |
Photos of current user | |
""" | |
user = self.get_object() | |
photos = Photo.objects.filter(user=user) | |
queryset = self.paginate_queryset(photos) |
I hereby claim:
To claim this, I am signing this object:
# Description: | |
# Positive plugin, it just anwsers you "超充實der!" | |
# | |
module.exports = (robot) -> | |
robot.respond /今天.*|How's going/i, (msg) -> | |
msg.send "超充實der!" |
""" | |
Requirements: | |
* A Wordpress Blog | |
* Python Packages: Markdown, PyYAML, python-wordpress-xmlrpc | |
>>> pip install Markdown python-wordpress-xmlrpc PyYAML | |
WARNING: |
import requests | |
import urllib | |
import json | |
import logging | |
logger = logging.getLogger(__name__) | |
class FacebookLike(object): | |
def __init__(self, access_token, user_id): |
import Crypto.Hash.SHA | |
import Crypto.PublicKey.RSA | |
import Crypto.Signature.PKCS1_v1_5 | |
import base64 | |
import time | |
KEY_PAIR_ID = "your_key_pair_id" | |
PRIV_KEY_FILE = "pk-xxxxxxxxxx.pem" |