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
hello |
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
/* | |
* 代码整理自 百度贴吧-chrome吧 @晓风残破 | |
* http://tieba.baidu.com/p/3285731258 | |
* | |
*/ | |
*{ | |
text-shadow: silver 0px 0px 1px; | |
} |
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
#rid9\.datetime { | |
position: fixed; | |
top: 85px; | |
right: 105px; | |
font-size: 75px; | |
color: red; | |
line-height: 1.4 !important; | |
height: unset !important; | |
font-family: 'M+ 1m', 'Hack'; |
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 gradient = require('gradient-string') | |
const figlet = require('figlet') | |
console.log( | |
gradient.rainbow( | |
figlet.textSync('Hello World !', { | |
font: 'Standard', | |
horizontalLayout: 'full', | |
}) | |
) |
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
/** | |
* 初始的 filter | |
*/ | |
export function initialFilter({ map, list }) { | |
list.forEach(item => setBox({ map, item })) | |
let i = 0 | |
while (i < list.length) { | |
let prev = list.slice(0, i) |
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
#beautiful soup doc : http://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html | |
DEBUG = False #是否在调试 | |
EXAMPLE_URL = 'http://tieba.baidu.com/p/3287469841' #示例网址 | |
PAGE_ENCODING = "gbk" #返回的encoding,默认就好 | |
IMAGE_DIR = 'image' #存放目录 | |
def getTitle(soup): #获取标题,文件夹名 | |
title = (soup.select("h1.core_title_txt"))[0]['title'] | |
return title.strip() | |
def getImgSrcs(soup): #如何获取本页的img src |
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 i = yargs | |
.usage('$0 -u <url> [options]') | |
.option('url', { | |
alias: 'u', | |
describe: '专辑/歌单 url', | |
required: true, | |
type: 'string', | |
}) | |
.option('concurrency', { | |
alias: 'c', |
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' | |
const fs = require('fs') | |
const _ = require('lodash') | |
const onecolor = require('onecolor') | |
const gd = require('node-gd') | |
// https://github.com/y-a-v-a/node-gd/blob/master/docs/index.md | |
// Set full path to font file | |
const fontpath = __home + '/files/fonts/arial.ttf' |
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
# encoding:utf-8 | |
################################################################################# | |
#自定义区 | |
#beautiful soup doc : http://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html | |
################################################################################# | |
DEBUG = False #是否在调试 | |
EXAMPLE_URL = 'http://www.baidu.com' #示例网址 | |
HTML_ENCODING =None #返回的encoding,默认就好 | |
IMAGE_DIR = 'image' #存放目录 |
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
# encoding:utf-8 | |
################################################################################# | |
#自定义区 | |
#beautiful soup doc : http://www.crummy.com/software/BeautifulSoup/bs4/doc/index.zh.html | |
################################################################################# | |
DEBUG = False #是否在调试 | |
EXAMPLE_URL = 'http://huaban.com/boards/2904887/' #示例网址 | |
HTML_ENCODING = 'utf8' #返回的encoding,默认就好 | |
IMAGE_DIR = 'image' #存放目录 |
NewerOlder