Skip to content

Instantly share code, notes, and snippets.

View njleonzhang's full-sized avatar
💭
I may be slow to respond.

Leon Zhang njleonzhang

💭
I may be slow to respond.
View GitHub Profile
岗位职责
1. 负责公司产品Web端、微信端、小程序和App的开发
2. 实现产品所需的交互效果,提升用户体验
岗位要求
1. x年以上前端经验, 熟悉vue技术栈或者react技术栈
2. 熟悉HTTP标准,html,css,js,jquery等技术
3. 了解typescript, es6/es7/esnext, pug, webpack, scss/stylus/less等
4. 具有较强的学习能力,乐于学习和运用新技术
5. 思维清晰,悟性良好; 具有较强的语言,文字表达能力
@njleonzhang
njleonzhang / gulpfile.js
Last active May 11, 2018 05:55
concat all file in one
/**
将本文件拷贝到你的目录下。
安装依赖
安装nodejs环境
npm install gulp-cli -g
cnpm i gulp-concat gulp
修改gulp.src里的后缀名来指定你需要拼接文件的后缀名和要排除的文件。
run命令 `gulp`, boom ~~~~ done.
*/
#!/bin/bash
echo "port forwarding starting..."
ps aux | grep ssh | awk '{ if($12 != "guxuecheng@ttys002") { print $2 } }' | xargs kill -9
ssh -CfNg -NL 3315:localhost:80 root@10.32.0.3 -p 2918
ssh -CfNg -NL 3316:localhost:8888 root@10.32.0.3 -p 2918
ps -ef | grep ssh
"editor.tabSize": 2,
"editor.renderWhitespace": "all",
"editor.wordWrap": "on",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
@njleonzhang
njleonzhang / rn.md
Last active August 29, 2022 01:23
react native 坑

用xcode编译RN项目的时候, 出现“RCTBundleURLProvider.h” file not found - AppDelegate.m

解决:

xcode Product->Scheme->Manage Schemes click '+' at the Target to select "React" and set the React is shared.

stackoverflow上 mark 的答案。

@njleonzhang
njleonzhang / crash1.txt
Last active July 30, 2018 02:19
TotalFinder crash
Process: Finder [765]
Path: /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder
Identifier: com.apple.finder
Version: 10.13.5 (10.13.5)
Build Info: Finder_FE-1054005004000000~20
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Finder [765]
User ID: 501
@njleonzhang
njleonzhang / index.js
Last active August 21, 2018 02:02
Vue jsx transform sample
const Babel = require('babel-core')
const vueJsx = require('babel-plugin-transform-vue-jsx')
let code = `
function render() {
return (
<div>
<div leon={a} onClick={this.click()}
{...{
props: {
@njleonzhang
njleonzhang / gist:33f3a5ae9eb5ebedc6145568c19b0a1b
Created October 16, 2018 11:10
autoimport should care about semicolons #37991
https://github.com/Microsoft/vscode/blob/master/extensions/typescript-language-features/src/features/fileConfigurationManager.ts
https://github.com/Microsoft/vscode/issues/37991
@njleonzhang
njleonzhang / index.md
Last active November 8, 2018 02:58
华为 AR 路由器配置静态 dns 解析

登录华为路由器

telnet 192.168.20.1

进入system view

system-view
@njleonzhang
njleonzhang / gist:dbf6051b8f42d8ed68c8ededf9fdf150
Last active October 29, 2018 02:10
服务器地址变化后,需要修改各个服务