Skip to content

Instantly share code, notes, and snippets.

View colinaaa's full-sized avatar
:electron:
Working hard!

王清雨 colinaaa

:electron:
Working hard!
View GitHub Profile
--[[
lvim is the global options object
Linters should be
filled in as strings with either
a global executable or a path to
an executable
]]
-- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
@colinaaa
colinaaa / keybindings.json
Created May 10, 2021 03:31
LunarVim VSCode Config
// Place your key bindings in this file to override the defaults
[
{
"command": "vscode-neovim.compositeEscape1",
"key": "j",
"when": "neovim.mode == insert && editorTextFocus",
"args": "j"
},
{
"command": "vscode-neovim.compositeEscape2",
const config = {
rate: 1, // playing rate
interval: 1 // the interval for check video ended
}
const play = () => {
const video = document.querySelector('video');
if (video && video.ended) {
console.log('AutoXuetangx now change to play next video.');
const list = document.querySelector('ul.active');
@colinaaa
colinaaa / refresh.js
Created March 24, 2020 08:52
refresh pdf when it changed in FireFox
let lastModifiedAt = new Date();
fetch(document.URL, {
mode: 'cors',
headers: {
'if-modified-since': lastUpdatedAt.toUTCString(),
}
})
.then(resp => {
if(resp.status === 304) {
@colinaaa
colinaaa / fuck.js
Created December 18, 2019 02:44
iCourse auto play
document.onvisibilitychange = a => a;
const play = a => {
const v = document.querySelector('video');
v.play();
v.playbackRate = 16;
document.hidden = false;
}
setInterval(a => play(),100);