Skip to content

Instantly share code, notes, and snippets.

@thisiswei
thisiswei / landingpage.js
Created May 21, 2021 15:32
landingpage.js
/*
curl -H 'Host: mall.xsyxsc.com' -H 'accept: application/json, text/plain, */*' -H 'content-type: application/json' -H 'origin: https://image.xsyxsc.com' -H 'referer: https://image.xsyxsc.com/item/cms/activityLandingPage/release/20210521/2021052114143131669-1.html?pageCode=2021052114143131669&storeId=66880000772786&storeName=%E5%85%B4%E7%9B%9B%E4%BC%98%E9%80%89%E7%81%BC%E7%8E%89%E5%BA%97&cityCode=3502&areaCode=350203&provinceCode=35&channelUse=WXAPP&saleRegionCode=112&isReport=true&userKey=&v=1.2&isIphoneX=false&t=1621610989604' -H 'userkey: ' -H 'accept-language: en-us' -H 'user-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/7.0.14(0x17000e2e) NetType/WIFI Language/en miniProgram' --data-binary '{"windowName":"十点爆款","areaId":"112","storeId":"66880000772786","includeStoreGroup":true}' --compressed 'https://mall.xsyxsc.com/cms/queryLandingPageProduct'
*/
{
"success": true,
"data": [{
"cmsIndexProductDto": {
"prId": 8
@thisiswei
thisiswei / storesnearby.js
Last active May 21, 2021 15:33
storesnearby.js
/*
curl -H 'Host: mall-store.xsyxsc.com' -H 'accept: application/json, text/plain, */*' -H 'content-type: application/x-www-form-urlencoded' -H 'accept-language: en-us' -H 'user-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 14_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/7.0.14(0x17000e2e) NetType/WIFI Language/en' -H 'referer: https://servicewechat.com/wx6025c5470c3cb50c/312/page-frame.html' --data-binary "mapX=114.047012&mapY=22.696412" --compressed 'https://mall-store.xsyxsc.com/mall-store/store/getNearStoreList'
*/
{
"rspCode":"success",
"rspDesc":"",
"data":[
{
"storeId":66880000649923,
{
"rspCode":"success",
"rspDesc":"",
"data":[
{
"orgAreaId":43,
"orgAreaName":"湖南省",
"orgAreaFullName":"湖南省",
"cityCharCode":null,
"level":1,
@thisiswei
thisiswei / xsyx.md
Last active June 3, 2021 05:08
xsyx
@thisiswei
thisiswei / es6
Last active November 26, 2018 02:58
es6
// https://ponyfoo.com/articles/es6#introduction
> [a, , b] = [0,1,2]
[ 0, 1, 2 ]
> a
0
> b
2
@thisiswei
thisiswei / more-vue.js
Last active November 19, 2018 05:14
more-vue
// why uses vuex?
// because it's easier to track changes
const sourceOfTruth = {}
const vmA = new Vue({
data: sourceOfTruth
})
const vmB = new Vue({
@thisiswei
thisiswei / vue.html
Last active November 18, 2018 19:08
vue-ing
// https://scotch.io/tutorials/implementing-authentication-in-nuxtjs-app
// https://github.com/vuejs/vue-hackernews-2.0
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<div id='app'>
{{message}}
</div>
@thisiswei
thisiswei / vue.js
Last active November 18, 2018 14:51
learning vue
// different hooks:
// - created
// - mounted
// - updated
// - destoryed
new Vue({
data: {
a: 1
},
@thisiswei
thisiswei / fly.py
Created September 12, 2015 02:48
get flights
'''
pip install pprint
pip install utensil
pip install requests
script for grabbing deals from here: http://content.flyfrontier.com/ways-to-save/online-deals
i.e., get deals flying out of Denver and flying back to LGA or PHL:
python /tmp/tmp6.py --console --o=DEN --d=LGA,PHL
@thisiswei
thisiswei / wiki-100k.txt
Last active August 29, 2015 12:19 — forked from h3xx/wiki-100k.txt
Wictionary top 100,000 most frequently-used English words [for john the ripper]
#!comment: This is a list of the top 100,000 most frequently-used English words
#!comment: according to Wiktionary.
#!comment:
#!comment: It was compiled in August 2005 and coalesced into a handy list for
#!comment: use in John the Ripper.
#!comment:
#!comment:
#!comment: Pull date: Sun Jan 15 22:03:54 2012 GMT
#!comment:
#!comment: Sources: