使用JAV金鸡儿奖官网附带的工具JAV SQL 查询器,可查询各种类别的JavDB TOP250影片:
及分年数据(存在部分重复影片,原始数据的问题):
| // 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks. | |
| // You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/) | |
| (() => { | |
| const SHOW_SIDES = false; // color sides of DOM nodes? | |
| const COLOR_SURFACE = true; // color tops of DOM nodes? | |
| const COLOR_RANDOM = false; // randomise color? | |
| const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com) | |
| const MAX_ROTATION = 180; // set to 360 to rotate all the way round | |
| const THICKNESS = 20; // thickness of layers | |
| const DISTANCE = 10000; // ¯\\_(ツ)_/¯ |
使用JAV金鸡儿奖官网附带的工具JAV SQL 查询器,可查询各种类别的JavDB TOP250影片:
及分年数据(存在部分重复影片,原始数据的问题):
| // | |
| // AppStoreUpdate.swift | |
| // | |
| // Created by CodeChanger on 03/11/19. | |
| // Copyright © 2019 CodeChanger. All rights reserved. | |
| // | |
| import UIKit | |
| enum CustomError: Error { |
| import { __RouterContext as RouterContext, RouteComponentProps } from 'react-router' | |
| import { useContext, useMemo, useCallback } from 'react' | |
| import qs from 'qs' | |
| import { Location } from 'history' | |
| interface ParsedQuery { | |
| [whatever: string]: any | |
| } | |
| export const useRouter = <T>(): RouteComponentProps<T> => |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| // This is a coding exercise of implementing a parser. Some minor parsing capabilities are not implemented. | |
| // The algorithm are mainly from Douglas Crockford's 'https://github.com/douglascrockford/JSON-js/blob/master/json_parse.js' | |
| function json_parse(str) { | |
| var i = 0 | |
| var ch = str[i] | |
| // core function that recursively called to move forward scanning pointers and accept tokens | |
| function next(c) { | |
| if (c) { |
| xcodebuild -workspace XXX.xcworkspace -scheme XXX clean build OTHER_SWIFT_FLAGS="-Xfrontend -debug-time-function-bodies" | grep '^\d\{3,\}[.]\{1\}' |
| function convertToCSV(objArray) { | |
| var array = typeof objArray != 'object' ? JSON.parse(objArray) : objArray; | |
| var str = ''; | |
| for (var i = 0; i < array.length; i++) { | |
| var line = ''; | |
| for (var index in array[i]) { | |
| if (line != '') line += ',' | |
| line += array[i][index]; |
| (function() { | |
| /** | |
| * 记录方法使用情况的类 | |
| * @param {Array.<boolean>} umMap 初始的使用情况 | |
| */ | |
| var UsageManager = function(umMap) { | |
| this.umMap = umMap || []; | |
| }; | |
| /** | |
| * 记录新的使用情况 |