Skip to content

Instantly share code, notes, and snippets.

View JunQu's full-sized avatar
🐣
Cooking

Fei JunQu

🐣
Cooking
View GitHub Profile
@JunQu
JunQu / hash_installl.reg
Last active October 6, 2023 12:16
Get file's hash and md5 in windows
Windows Registry Editor Version 5.00
; save as .reg file and encode format suggestions UTF-16 LE
; double click to install, and will appear on your contex menu
; from : https://www.iplaysoft.com/file-hash-menu.html
[HKEY_CLASSES_ROOT\*\shell\hash]
"MUIVerb"="Hash"
"SubCommands"=""
"Icon"="PowerShell.exe"
@JunQu
JunQu / Webstorm-IDEA-Macros-Configrations-variables.md
Created May 13, 2022 07:48
IDEA/Webstorm File Macros and Run/Debug Configrations' variables

IDEA/Webstorm Macros and Run/Debug Configrations' variables

Macros Description
AffectedModuleNames The names of modules in the scope, comma-separated
ClipboardContent The clipboard content
ColumnNumber Column number
ContentRoot Content root path the file belongs to
FileDir File directory
FileDirName File directory name
@JunQu
JunQu / isPlainObject
Created September 7, 2019 13:53
isPlainObject 判断它是不是一个原生普通对象
/**
* Redux v4.0.1 (https://github.com/reduxjs/redux)
* Copyright (c) 2015-present Dan Abramov
* The MIT License (MIT)(https://github.com/reduxjs/redux/blob/master/LICENSE.md)
*
* @param {any} obj The object to inspect.
* @returns {boolean} True if the argument appears to be a plain object.
*/
function isPlainObject(obj) {
if (typeof obj !== 'object' || obj === null) return false
@JunQu
JunQu / gist:f2338ddfab9629c2fe3f20a9c98e3d2c
Last active May 13, 2022 07:55
get uuid in javascript
/* TodoMVC v1.3.1 (https://github.com/tastejs/todomvc) */
/* Copyright (c)Pascal Hartig <phartig@rdrei.net> (https://passy.me) */
/* The MIT License (MIT)(https://github.com/tastejs/todomvc/blob/master/license.md) */
/* This source code was getting from https://github.com/tastejs/todomvc/blob/master/examples/react/js/utils.js */
function uuid() {
let uuid = '';
for (let i = 0; i < 32; i++) {
const random = Math.random() * 16 | 0;