Skip to content

Instantly share code, notes, and snippets.

View seekerlee's full-sized avatar
🏠
Working from home

Simon seekerlee

🏠
Working from home
View GitHub Profile
微软苏州新项目社招:
- 全新未公开项目,内容处于保密状态
- Core Engineering 不在西雅图,不在印度,不在北京上海,在苏州
- 可能用的技术:.net, c#, typescript, Azure Cloud
- 大 Boss 带领过多个微软 multi-billion dollar business 的项目
- 苏州 team 将会有 90 人,其中 60 人在招聘
- 双 4k 显示器 + 台式机 + Surface Pro + 森海主动降噪耳机
- 目前男女工程师比例 1:1
微软苏州情况:
pip install python-bcrypt
document.querySelectorAll('.member_list_table tr').forEach(e => {
console.log(e.getAttribute('name')+','+e.getAttribute('alias'))
})
@seekerlee
seekerlee / fib.js
Created January 19, 2019 16:37
JS fibonacci generator
function* fib() {
let a = 0, b = 1
while(true) {
const tmp = a + b
yield tmp
a = b
b = tmp
}
}
@seekerlee
seekerlee / genesis_public_key
Last active February 8, 2018 13:42
genesis_public_key
04570fdfbeb4e88bdadf52bc398a19fab8511708f4822ea434f2f92215f0214685a9475d4774c30521fd75ce52f14d6bb3c2761004ac625ec8054b4b864bf2b971
@seekerlee
seekerlee / electron native module
Last active March 19, 2018 12:41
electron build native
# Electron's version. which can be found at node_modules/electron/package.json my version is 1.7.11
export npm_config_target=1.8.4
# The architecture of Electron, can be ia32 or x64.
export npm_config_arch=x64
export npm_config_target_arch=x64
# Download headers for Electron.
export npm_config_disturl=https://atom.io/download/electron
# Tell node-pre-gyp that we are building for Electron.
export npm_config_runtime=electron
# Tell node-pre-gyp to build module from source code.
@seekerlee
seekerlee / Info.plist
Created August 4, 2017 08:43
static lib to framework
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
@seekerlee
seekerlee / nginxproxy.md
Created June 11, 2016 17:02 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

var ninja = (function(){
function Ninja(){}
return new Ninja();
})();
// Make another instance of Ninja
var ninjaB = new ninja.constructor();
assert( ninja.constructor == ninjaB.constructor, "The ninjas come from the same source." );