Skip to content

Instantly share code, notes, and snippets.

View hehehai's full-sized avatar
🎄
Gliding

木头981 hehehai

🎄
Gliding
View GitHub Profile
# Recosite 隐私政策
**生效日期:2025年11月6日**
## 概述
Recosite("本扩展")是一款浏览器扩展程序,旨在帮助用户截取网页内容为图片和录制网页交互为视频。我们非常重视您的隐私,本隐私政策说明了本扩展如何处理您的信息。
## 信息收集
@hehehai
hehehai / github-proxy-client.js
Last active March 16, 2022 01:04 — forked from DavidWells/github-proxy-client.js
Full Github REST api in 34 lines of code
/* Ultra lightweight Github REST Client */
// original inspiration via https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb
const token = 'github-token-here'
const githubClient = generateAPI('https://api.github.com', {
headers: {
'User-Agent': 'xyz',
'Authorization': `bearer ${token}`
}
})
@hehehai
hehehai / demo.html
Created March 6, 2022 02:53
vue simple reactivity
<script type="module">
import { reactive, effect } from "./reactivity.esm.js";
const root = document.querySelector("#root");
const pre = document.querySelector("#pre");
const btnAge = document.querySelector("#btn_age");
const btnDel = document.querySelector("#btn_del");
const btnDelAll = document.querySelector("#btn_del_all");
const btnAddMovie = document.querySelector("#btn_add_movie");
const inputName = document.querySelector("#input_name");
@hehehai
hehehai / DateUtil.java
Last active August 19, 2021 02:22
时间日期
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
/**
* 日、星期(周)、旬、月、季度、年等时间工具类
@hehehai
hehehai / rbac.dbml
Last active July 26, 2022 05:43
用户,角色,权限,组
Table User {
id integer(64) [pk, increment]
loginName varchar(80) [not null]
password varchar(255) [not null]
nickName varchar(60)
mobile varchar(20)
email varchar(255)
createdAt timestamp [default: `now()`]
indexes {
@hehehai
hehehai / proxy.md
Last active January 12, 2021 06:25
shell proxy
function transform(value) {
let newValue = ['', '', ''];
let fr = 1000;
const ad = 1;
let num = 3;
const fm = 1;
while (value / fr >= 1) {
fr *= 10;
num += 1;
console.log('数字', value / fr, 'num:', num);
@hehehai
hehehai / swiper.js
Created April 19, 2019 04:02
codyhouse swiper
;(function() {
var SwipeContent = function(element) {
this.element = element
this.delta = [false, false]
this.dragging = false
this.intervalId = false
initSwipeContent(this)
}
function initSwipeContent(content) {
@hehehai
hehehai / alignment.scss
Last active March 20, 2019 04:28
codyhouse source
:root, body {
--space-unit: 1em;
--space-xxxxs: calc(0.125 * var(--space-unit));
--space-xxxs: calc(0.25 * var(--space-unit));
--space-xxs: calc(0.375 * var(--space-unit));
--space-xs: calc(0.5 * var(--space-unit));
--space-sm: calc(0.75 * var(--space-unit));
--space-md: calc(1.25 * var(--space-unit));
--space-lg: calc(2 * var(--space-unit));
--space-xl: calc(3.25 * var(--space-unit));
@hehehai
hehehai / cloudSettings
Last active February 20, 2021 05:58
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-02-20T05:58:18.402Z","extensionVersion":"v3.4.3"}