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
@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 / 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 的答案。

"editor.tabSize": 2,
"editor.renderWhitespace": "all",
"editor.wordWrap": "on",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
#!/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
@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.
*/
岗位职责
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 / release.sh
Created February 28, 2018 02:37
release script for node project
#!/usr/bin/env bash
set -e
if [[ -z $1 ]]; then
echo "Enter new version: "
read VERSION
else
VERSION=$1
fi
分级的基本原则是:
P0. 系统主要功能丧失,用户数据受到破坏,造成App崩溃、悬挂等问题。例如程序所引起的死机, 非法退出、死循环、死锁、数据流环节上严重的数值计算错误、产品设计存在严重的安全问题、漏洞被利用后可能导致系统瘫痪、数据丢失或隐私泄露等问题。
P1. 功能部分没有实现、功能与要求不符、数据流错误、程序接口错误、数据流环节上轻微的数值计算错误、性能如内存溢出、响应时间超长等的诸多问题。
P2. 界面出现错误、格式错误、没有进行一些特殊的限制和要求、删除内容没有做提示、存在必填项冗余内容等方面。
P3. 轻微只要发生在一些小的界面方面的问题。例如错别字、提示信息、语法日期显示格式不正确、界面不美观、操作不方便和不习惯等诸多方面。
开发会优先处理优先级为P0和P1的问题。如果对于测试用例的优先级有疑问,可以提出讨论。
@njleonzhang
njleonzhang / gist:a905756df2c32f93e70f95c61c036712
Last active April 9, 2018 02:56
testLink 生成每人进度报告。
http://192.168.0.156:3315/testlink/lib/testcases/tcAssignedToUser.php?show_all_users=1&show_inactive_and_closed=1&format=0&tplan_id=2681
result = [];

[].slice.call(document.getElementsByClassName('x-grid-group')).map(user => {
	let nameEl = user.getElementsByClassName('x-grid-group-title')
	let caseEls = user.getElementsByClassName('x-grid3-row')
@njleonzhang
njleonzhang / data-tables-hoc.js
Last active November 30, 2017 13:49
try vue hoc
import {DataTables as oDataTables, DataTablesServer as oDataTablesServer} from 'vue-data-tables'
import Vue from 'vue'
let dataTablesHoc = Component => {
return {
components: {
[Component.name]: Component
},
render() {