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
| import requests | |
| requests.post("http://localhost:12306/post", | |
| files={ | |
| 'key': ('filename', open('file', 'rb')), | |
| }, | |
| data={"field1":"x", "field2":"y"}, | |
| ) | |
| qiniu.rpc.Client("localhost:12306").call_with_multipart("/post", [("field1", "x"), ("field2", "y")], files = [("file", "key", "data")]) |
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
| python setup.py register sdist bdist_egg upload |
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
| /* | |
| sublime-imfix.c | |
| Use LD_PRELOAD to interpose some function to fix sublime input method support for linux. | |
| By Cjacker Huang <jianzhong.huang at i-soft.com.cn> | |
| gcc -shared -o libsublime-imfix.so sublime-imfix.c `pkg-config --libs --cflags gtk+-2.0` -fPIC | |
| LD_PRELOAD=./libsublime-imfix.so sublime_text | |
| */ | |
| #include <gtk/gtk.h> | |
| #include <gdk/gdkx.h> |
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
| data:text/html, | |
| <style type="text/css"> | |
| #e { | |
| position:absolute; | |
| top:0; | |
| right:0; | |
| bottom:0; | |
| left:0; | |
| font-size:16px; | |
| } |
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
| package main | |
| import ( | |
| "time" | |
| "fmt" | |
| "strings" | |
| ) | |
| func main() { | |
| p := [][][]string { |
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
| package main | |
| import ( | |
| "qbox.us/log" | |
| rsapi "qbox.us/api/v2/rs" | |
| "qbox.us/api/conf" | |
| "qbox.us/digest_auth" | |
| "encoding/json" | |
| "fmt" | |
| ) |
NewerOlder