Skip to content

Instantly share code, notes, and snippets.

View user20161119's full-sized avatar
👍
突破边界,直到很痛

noboday user20161119

👍
突破边界,直到很痛
View GitHub Profile
package cn.gxnu.ipdata;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.HashMap;
import java.util.Map;
@user20161119
user20161119 / fileops_create_folder.json
Created March 9, 2014 09:02
/fileops/create_folder response
{
"revision": 167391,
"rev": "28ddf07ad0c7c",
"thumb_exists": false,
"bytes": 0,
"modified": "Sun, 09 Mar 2014 08:58:10 +0000",
"path": "/ToDo/myfolder2",
"is_dir": true,
"icon": "folder",
"root": "dropbox",
package javamailtests;
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
public class JavaMailPop3Reader {
public static void main(String args[]) throws Exception {
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import java.util.Properties;
import javax.mail.Address;
import javax.mail.BodyPart;
import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.MessagingException;
@user20161119
user20161119 / findItemsAdvanced.output..json
Created March 22, 2014 02:43
ebay search findItemsAdvanced output
{
"findItemsAdvancedResponse": [
{
"ack": [
"Success"
],
"version": [
"1.12.0"
],
"timestamp": [
@user20161119
user20161119 / time.json
Created March 29, 2014 13:48
flot time series data
{
callStatus: "success",
message: null,
data: [
[
1396496221000,
200
],
[
1396492800000,
@user20161119
user20161119 / mongd.conf
Created April 12, 2014 01:12
mongod.conf template
# mongodb.conf
# Where to store the data.
# Note: if you run mongodb as a non-root user (recommended) you may
# need to create and set permissions for this directory manually,
# e.g., if the parent directory isn't mutable by the mongodb user.
dbpath=/var/lib/mongodb
#where to log,point to a file,not a dir
@user20161119
user20161119 / GetItemStatus .json
Created April 27, 2014 13:58
ebay shopping GetItemStatus 已经结束的Auction Item返回,一个sold,一个completed
{
"Timestamp": "2014-04-27T13:25:14.468Z",
"Ack": "Success",
"Build": "E869_CORE_APILW_16784697_R1",
"Version": "869",
"Item": [
{
"ItemID": "121326096612",
"EndTime": "2014-04-26T20:50:55.000Z",
"BidCount": 0,
@user20161119
user20161119 / result.json
Created April 27, 2014 14:01
GetItemStatus buy it now item,未售出返回的json
{
"Timestamp": "2014-04-27T13:59:00.791Z",
"Ack": "Success",
"Build": "E869_CORE_APILW_16784697_R1",
"Version": "869",
"Item": [
{
"ItemID": "371019020831",
"EndTime": "2014-04-26T20:07:46.000Z",
"BidCount": 0,
@user20161119
user20161119 / result.json
Created April 27, 2014 14:03
GetItemStatus buy it now item,售出的item返回json
{
"Timestamp": "2014-04-27T14:01:50.091Z",
"Ack": "Success",
"Build": "E869_CORE_APILW_16784697_R1",
"Version": "869",
"Item": [
{
"ItemID": "181386998931",
"EndTime": "2014-04-26T20:12:23.000Z",
"BidCount": 0,