Skip to content

Instantly share code, notes, and snippets.

Avatar
:bowtie:
flowchart-core.js is a nice tool.

睿晨 TimRChen

:bowtie:
flowchart-core.js is a nice tool.
  • flowchart-core.js
  • Beijing
View GitHub Profile
@TimRChen
TimRChen / throttle-demo.js
Created Mar 12, 2020
simple throttle demo by timrchen
View throttle-demo.js
const $box = document.querySelector(".mouse-move-box");
let timer = null;
const options = {
capture: false
};
const listener = e => {
const { x, y } = e;
@TimRChen
TimRChen / run.js
Last active Mar 12, 2020
fast coding script use js
View run.js
const { prompt } = require("inquirer");
const { readdirSync } = require("fs");
const { exec } = require("child_process");
async function run() {
const folder = `${__dirname}/public`;
const choices = await readdirSync(folder);
const promptList = [
@TimRChen
TimRChen / App.vue
Created Aug 21, 2018
simple count down handler for vue.js
View App.vue
<script>
// 未来的终止时间 2018.10.10 23:59:59
const futureDate = new Date(2018, 10, 10, 23, 59, 59)
export default {
data () {
return {
time: {
day: '69', // String
hour: '59', // String
You can’t perform that action at this time.