Skip to content

Instantly share code, notes, and snippets.

@bluetomlee
bluetomlee / The Technical Interview Cheat Sheet.md
Created April 26, 2022 12:12 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@bluetomlee
bluetomlee / babel.md
Created May 15, 2018 07:48
[babel-plugin] babel #babel

babel-plugin

three stage of Babel:

parse => transform => generate

parse

@bluetomlee
bluetomlee / tenet.md
Created May 3, 2018 09:22
[原则读书笔记] 原则读书笔记 #原则 #读后感

原则

一、有明确的目标

​ - 目标拆分优先级

​ - 忽略掉目标。日复一日工作中

二、复盘,找出问题,并且不容忍问题

@bluetomlee
bluetomlee / webrpc.md
Created May 3, 2018 09:20
[WebRTC摘要] 正确姿势认识webrpc #webrpc #p2p

What is WebRTC?

全称Web Real-Time Communication,它解决的是 Web 端无法捕获音视频的能力,并且提供了 peer-to-peer点对点的视频交互。实际上,细分看来,它包含三个部分:

  • MediaStream: 获取本地音视频流,
  • RTCPeerConnection: 由本地计算机到远端的WebRTC连接,暴露创建,保持,监控,关闭连接的
  • RTCDataChannel: peer-to-peer的双向数据通道的连接(一般用到流的上传)

诞生背景

@bluetomlee
bluetomlee / webpack-perf.md
Created May 3, 2018 09:19
[webpack优化笔记] webpack+dora #webpack #dllreference #dora

webpack优化

dora迭代反向代理优化

之前每次迭代,下次开发时需要在反向代理前手动增加版本号

const rules = {
@bluetomlee
bluetomlee / index.html
Created November 12, 2014 14:27
A Pen by Bluetom.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Reflow</title>
<style>
#test1,#test2{position:absolute;width:300px;height:100px;margin-bottom:10px;}
#test1{left: 0px;background-color:blue;}
#test2{left: 320px;background-color:black;}
</style>
@bluetomlee
bluetomlee / index.html
Created November 4, 2014 08:16
A Pen by Bluetom.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Validation Test</title>
<script src="http://jqueryvalidation.org/files/lib/jquery.js"></script>
<script src="http://jqueryvalidation.org/files/dist/jquery.validate.js"></script>
<style>
.center{position:absolute;top:50%;left:39%;}
#login .error{font-size:12px;color: #d44950;}
import sublime
import sublime_plugin
import re
class CompactExpandCssCommand(sublime_plugin.TextCommand):
def run(self, edit, action='compact'):
rule_starts = self.view.find_all('\{')
rule_ends = self.view.find_all('\}')