Skip to content

Instantly share code, notes, and snippets.

@sumaolin
sumaolin / proxyTrack.js
Created March 18, 2019 02:41 — forked from mrharel/proxyTrack.js
Using Proxy to Track Javascript Class
const callerMap = {};
function getCaller(error) {
if (error && error.stack) {
const lines = error.stack.split('\n');
if (lines.length > 2) {
let match = lines[2].match(/at ([a-zA-Z\-_$.]+) (.*)/);
if (match) {
return {
name: match[1].replace(/^Proxy\./, ''),
@sumaolin
sumaolin / media-query.css
Created March 13, 2019 14:53 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@sumaolin
sumaolin / index.js
Last active January 29, 2019 09:19 — forked from edokeh/index.js
funny 注释代码 : 佛祖保佑,永无bug
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \