This file contains 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
const EOL = require('os').EOL; | |
const reCommentContents = /\/\*([\s\S]*?)\*\//; | |
// Node wraps modules in a function so we can't use the native .isToplevel() method | |
const reTopLevel = /function \(exports, require/; | |
const multiline = () => { | |
const _ = Error.prepareStackTrace; | |
Error.prepareStackTrace = (_, stack) => stack; |
This file contains 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
// node version v8.2.1 | |
const async_hooks = require('async_hooks'); | |
const fs = require('fs'); | |
const result = {id: 1, name: 'root', children: []}; | |
function findObjectByLabel(obj, id) { | |
if (obj.id === id) return obj; | |
for (var i = 0; i < obj.children.length; i++) { | |
var result = findObjectByLabel(obj.children[i], id); |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script | |
src="http://code.jquery.com/jquery-3.2.1.min.js" | |
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" | |
crossorigin="anonymous"></script> | |
<meta charset="UTF-8"> | |
<title>test iOS</title> | |
</head> |
This file contains 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
var trans_data = '{"exorderno":"10004200000001100042","transid":"02113013118562300203","waresid":1,"appid":"20004600000001200046","feetype":0,"money":3000,"count":1,"result":0,"transtype":0,"transtime":"2013-01-31 18:57:27","cpprivate":"123456"}'; | |
var key = 'MjhERTEwQkFBRDJBRTRERDhDM0FBNkZBMzNFQ0RFMTFCQTBCQzE3QU1UUTRPRFV6TkRjeU16UTVNRFUyTnpnek9ETXJNVE15T1RRME9EZzROVGsyTVRreU1ETXdNRE0zTnpjd01EazNNekV5T1RJek1qUXlNemN4'; | |
var sign = '28adee792782d2f723e17ee1ef877e7 166bc3119507f43b06977786376c0434 633cabdb9ee80044bc8108d2e9b3c86e'; | |
var md5 = require('md5'); | |
// var base64_encode = require('base64').encode; | |
// var base64_decode = require('base64').decode; | |
var base64_encode = function (input) { | |
return new Buffer(input).toString('base64') |
This file contains 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
{ | |
"生活服务": { | |
"生活服务": 53, | |
"餐饮美食": 5, | |
"家政服务": 363, | |
"生活百科": 390, | |
"家居建材": 38, | |
"宠物玩具": 22, | |
"分类信息": 21, | |
"求职招聘": 18, |
This file contains 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
var hprose = require("./lib/hprose"); | |
var client = hprose.Client.create("http://127.0.0.1:8080/"); | |
var proxy = client.useService(); | |
// console.log(proxy.hello) | |
// console.log(proxy.a.hello) | |
proxy.hello("world", function(result) { | |
console.log(result); | |
}, function(name, err) { |
This file contains 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
飘得前台能赚钱,漂亮的产品能赚钱吗? |
This file contains 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
var edge = require('edge'); | |
var decrypt = edge.func(function() {/* | |
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using System.Security.Cryptography; | |
using System.Text; | |
public class Startup |
This file contains 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
#!/usr/bin/env node | |
"use strict"; | |
var debug = require('_debugger'); | |
var c = new debug.Client(); | |
function main() { | |
console.log('requesting trace'); | |
c.reqBacktrace(function(err,trace) { | |
if (!err) { |
This file contains 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
'use strict'; | |
var _http = require('http'); | |
var _http2 = _interopRequireDefault(_http); | |
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | |
var raven = require('raven'); |