Skip to content

Instantly share code, notes, and snippets.

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

noboday user20161119

👍
突破边界,直到很痛
View GitHub Profile
myDataSource.doBeforeParseData = function (oRequest, oFullResponse, oCallback)
{
var i, results = oFullResponse.sales,
len = results.length,
filter,
hash = {},
item,
parsedItem,
parsedItems = [];
for(i = 0; i < len; ++i)
var myDataSource = new YAHOO.util.DataSource( "[YOUR_DATA_URL]" );
myDataSource.connMethodPost = true;
myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
myDataSource.responseSchema =
{
resultsList: "sales",
fields: ["order_date","northamerican", "asian"]
};
myDataSource.doBeforeParseData = function (oRequest, oFullResponse, oCallback)

Gitlab Gmail configuration

In Gitlab 2.6 you must edit the following files in order to send messages through a Gmail account (also applicable to Google Apps accounts).

config/environments/production.rb

config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
@user20161119
user20161119 / findingapirequest.json
Created January 1, 2014 08:31
ebay finding api request json
{
"jsonns.xsi": "http://www.w3.org/2001/XMLSchema-instance",
"jsonns.xs": "http://www.w3.org/2001/XMLSchema",
"jsonns.tns": "http://www.ebay.com/marketplace/search/v1/services",
"tns.findItemsByKeywordsRequest": {
"keywords": "great white shark tooth",
"categoryId": [
"15917"
],
"paginationInput": {
@user20161119
user20161119 / GetCategoryInfo.json
Created February 16, 2014 03:54
Shopping API GetCategoryInfo response
{
"Timestamp": "2014-02-16T03:47:17.674Z",
"Ack": "Success",
"Build": "E857_CORE_APILW_16627020_R1",
"Version": "857",
"CategoryArray": {
"Category": [
{
"CategoryID": "-1",
"CategoryLevel": 0,
@user20161119
user20161119 / shoppingapi_error.json
Created February 16, 2014 05:17
Shopping API ERROR JSON
{
"Timestamp": "2014-02-16T05:16:40.779Z",
"Ack": "Failure",
"Errors": [
{
"ShortMessage": "Invalid CategoryID.",
"LongMessage": "Invalid CategoryID.",
"ErrorCode": "10.36",
"SeverityCode": "Error",
"ErrorParameters": [
@user20161119
user20161119 / GetMultipleItems.json
Created February 16, 2014 11:32
ebay shopping api GetMultipleItems json
{
"Timestamp": "2014-02-16T11:31:59.353Z",
"Ack": "Success",
"Build": "E857_CORE_APILW_16627020_R1",
"Version": "857",
"Item": [
{
"ItemID": "221372241840",
"EndTime": "2014-02-16T12:16:01.000Z",
"ViewItemURLForNaturalSearch": "http://www.ebay.com/itm/great-white-bull-shark-tooth-pendant-necklace-HandMade-thailand-silver-092310-/221372241840",
@user20161119
user20161119 / GetItemStatus.json
Last active August 29, 2015 13:56
GetItemStatus active item json output
{
"Timestamp": "2014-02-23T02:38:14.751Z",
"Ack": "Success",
"Build": "E861_CORE_APILW_16677026_R1",
"Version": "861",
"Item": [
{
"ItemID": "221377742810",
"EndTime": "2014-02-23T05:57:43.000Z",
"BidCount": 5,
@user20161119
user20161119 / GetItemStatus.json
Created February 23, 2014 02:42
GetItemStatus completed items json output
{
"Timestamp": "2014-02-23T02:41:35.340Z",
"Ack": "Success",
"Build": "E861_CORE_APILW_16677026_R1",
"Version": "861",
"Item": [
{
"ItemID": "221377046762",
"EndTime": "2014-02-22T01:18:33.000Z",
"BidCount": 0,
@user20161119
user20161119 / jvmcrash.log
Created February 26, 2014 01:12
jvm crash error log
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007ff3375856df, pid=28632, tid=140681815942912
#
# JRE version: 6.0_45-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.45-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x77f6df] Rewriter::rewrite_member_reference(unsigned char*, int)+0x1f
#