Skip to content

Instantly share code, notes, and snippets.

View JounQin's full-sized avatar
💻
Focusing on one thing at a time means you'll get more done.

JounQin JounQin

💻
Focusing on one thing at a time means you'll get more done.
View GitHub Profile
@JounQin
JounQin / dev-console.schema.json
Last active March 21, 2022 12:31
Alauda Dev Console Configuration Schema
{
"title": "Alauda Dev Console Configuration",
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"required": [
"authentication",
"console"
],
"properties": {
"authentication": {
@JounQin
JounQin / instrumenter.js
Created September 9, 2019 06:08
Workaround for jest coverage issue because of `istanbul-lib-instrument`
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.defaultOpts = defaultOpts;
exports.default = void 0;
var parser = _interopRequireWildcard(require("@babel/parser"));
@JounQin
JounQin / moveTranslate.js
Last active August 5, 2016 15:16
基于 jQuery 使用 transform(translate) 进行拖拽,附赠一个随机倒数的功能
/**
* Created by JounQin on 16/6/2.
*/
+function ($) {
function trueType(input) {
var output = Object.prototype.toString.call(input);
return output.substring(8, output.length - 1);
}
$.each(['Object', 'Array', 'Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp', 'Null', 'Undefined'], function (index, value) {