Skip to content

Instantly share code, notes, and snippets.

View OXOYO's full-sized avatar
👠

之梦 OXOYO

👠
View GitHub Profile
@OXOYO
OXOYO / index.html
Created June 20, 2023 12:16
LCH and HSL colors
<!--Colors coverted using Lea Verou’s LCH coverter https://css.land/lch/-->
<div class="main-wrapper">
<header>
<h1>Comparing LCH and HSL colors</h1>
<button data-toggle hidden role="switch" checked="false">
Grayscale<span data-text aria-hidden>: Off</span>
</button>
</header>
<div class="grid">
<div class="wrapper">
@OXOYO
OXOYO / npm-install-chromedriver-fail.md
Last active November 12, 2018 02:21
npm install chromedriver 失败解决办法

错误信息

> [email protected] install E:\Webstorm_WorkSpace\X-Admin\node_modules\chromedriver
> node install.js

Downloading https://chromedriver.storage.googleapis.com/2.33/chromedriver_win32.zip
Saving to C:\Users\ADMINI~1\AppData\Local\Temp\chromedriver\chromedriver_win32.zip
ChromeDriver installation failed Error with http(s) request: Error: getaddrinfo ENOTFOUND chromedriver.storage.googleapis.com chromedriver.storage.googleapis.com:443
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
@OXOYO
OXOYO / DisableDebugger.js
Created November 9, 2018 10:08
禁用调试工具
/**
* Created by OXOYO on 2018/11/9.
*
* 禁用调试工具
*/
const closeWindow = (loop) => {
clearInterval(loop)
// 关闭当前窗口
window.close()
@OXOYO
OXOYO / chromeExtensionOpenSite.js
Created September 19, 2018 02:12
chrome扩展打开网页脚本
function Background () {
chrome.runtime.onInstalled.addListener(function (details) {
// only run the following section on install
if (details.reason !== "install") {
return;
}
chrome.tabs.create({
url: "https://webdesktop.net"
});
<style scoped lang="less" rel="stylesheet/less">
.high-light-block {
position: relative;
display: inline-block;
width: 100%;
line-height: 1;
margin-bottom: 10px;
background: #3f3f3f;
&:hover {
@OXOYO
OXOYO / scrollTo.js
Created August 11, 2017 04:29 — forked from joshcanhelp/scrollTo.js
Animated scrollTo for specific element or top of page
//
// Smooth scroll-to inspired by:
// http://stackoverflow.com/a/24559613/728480
//
module.exports = function (scrollTo, scrollDuration) {
//
// Set a default for where we're scrolling to
//