Skip to content

Instantly share code, notes, and snippets.

View EnixCoda's full-sized avatar
👀
Open for local/remote frontend opportunities

Enix EnixCoda

👀
Open for local/remote frontend opportunities
View GitHub Profile
@EnixCoda
EnixCoda / NodeJS.v.10.7.0.md
Last active November 1, 2018 19:16
safe-touch benchmark, MacBookPro 2015 15'
***********************************************************
try...catch VS safe-touch
Will run 100,000 times for each test case.

Will test with these retrieve methods:
  function impossibleRetrieve(_) { return _[Math.random()][Math.random()] }
  function shallowRetrieve(_) { return _.key }
  function deepRetrieve(_) { return _.a.b.c.d.e.f.g.h.i }
@EnixCoda
EnixCoda / battery.js
Created March 22, 2017 05:01
ECNU宿舍电量查询脚本
const http = require('http')
const options = {
host: 'wx.ecnu.edu.cn',
path: '/CorpWeChat/card/dogetEle.html',
method: 'POST',
headers: {
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/x-www-form-urlencoded'
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Luck Money</title>
<style>
* {
margin: 6px;
}