Skip to content

Instantly share code, notes, and snippets.

View hadeshe93's full-sized avatar
🎯
Focusing

Hades He hadeshe93

🎯
Focusing
  • China
View GitHub Profile
@hadeshe93
hadeshe93 / global.d.ts
Created December 8, 2020 03:27
Type files for typescript, including recognizing file with '.vue' extension.
// 声明全局变量,防止编辑器报错
declare const wx: any;
declare const __wxConfig: any;
declare const App: any;
declare const getCurrentPages: any;
// 声明全局接口
interface IAnyObject {
[key: string]: any;
}
@hadeshe93
hadeshe93 / demo-app.js
Created December 8, 2020 03:37
Parse process.argv into object which matching the format you need.
const getWantedArgvObject = require('./parse-process-argv.js');
const argvObj = getWantedArgvObject(process.argv, {
'--deligate-comps': String,
// ...
});
@hadeshe93
hadeshe93 / tool-for-github.md
Created December 8, 2020 03:43
Record efficient tools for github
@hadeshe93
hadeshe93 / .babel.config.js
Created December 8, 2020 03:46
Babel config file
const presets = [
[
'@babel/preset-env',
// 默认是 'auto'
//{ modules: 'commonjs'},
],
];
const plugins = [
'@babel/plugin-transform-runtime',
@hadeshe93
hadeshe93 / README.md
Created March 31, 2024 00:46
Discord Timestamp Generator

Discord Timestamp Generator

Designed to cater to the diverse needs of online groups, this utility simplifies the process of scheduling events and announcements. By selecting a specific time in the tool, you can effortlessly generate markdown text that, when posted in Discord, automatically adjusts to display the corresponding time in each user's local timezone. This ensures clear communication and eliminates the confusion of time conversions, making it ideal for coordinating multiplayer gaming sessions, virtual meetings, or any group activities.

And I have build a simple convenient tool to helper us generating timestamp markdown snippets quicky: https://discordtimestampsgenerator.com/

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)