Skip to content

Instantly share code, notes, and snippets.

View limichange's full-sized avatar
🎯
Focusing

limichange limichange

🎯
Focusing
View GitHub Profile
use rocket::serde::{Serialize, json::Json};
use reqwest::Client;
use scraper::{Html, Selector};
use reqwest::header::{HeaderMap, USER_AGENT};
#[macro_use] extern crate rocket;
#[derive(Serialize)]
struct ResponseData {
message: String,
package main
import (
"net/http"
"os"
"github.com/gin-gonic/gin"
"github.com/gocolly/colly/v2"
)
@limichange
limichange / taobao.js
Created June 14, 2019 10:59
处理淘宝价格数据
const skuBase = _DATA_Detail.skuBase
const sku2info = a.sku2info
let result = ''
skuBase.props[0].values.forEach(type => {
const vid = type.vid
const { skuId } = skuBase.skus.find(item => {
return item.propPath.split(':')[1] === vid.toString()
})
<video src="http://ali-pull.v.momocdn.com/momo/m_4e0473e8e2c7eb3614895551704521.m3u8"></video>
@limichange
limichange / test.md
Created November 30, 2016 03:02
test

asdfasdf

asdfas, aslkdfjlasdf

asdlfkjlaksdjf

asldfhkjasdhf

@limichange
limichange / index.html
Created March 1, 2014 04:54
change css2
<!doctype html>
<html lang="en" ng-app>
<head>
<meta charset="UTF-8">
<title>test</title>
<style>
.error {
background-color: red;
}
<!doctype html>
<html lang="en" ng-app>
<head>
<meta charset="UTF-8">
<title>test</title>
</head>
<body>
<div ng-controller="HelloController">
<div ng-repeat="item in items">
<div>
@limichange
limichange / index.html
Created March 1, 2014 04:54
change css
<!doctype html>
<html lang="en" ng-app>
<head>
<meta charset="UTF-8">
<title>test</title>
<style>
.menu-disabled-true {
color: gray;
}
</style>
@limichange
limichange / index.html
Created March 1, 2014 04:54
change css3
<!doctype html>
<html lang="en" ng-app>
<head>
<meta charset="UTF-8">
<title>test</title>
<style>
.selected {
background-color: lightgreen;
}
</style>