Skip to content

Instantly share code, notes, and snippets.

View wssgcg1213's full-sized avatar
👾
Unlimited user.

ZeroLing wssgcg1213

👾
Unlimited user.
View GitHub Profile
@wssgcg1213
wssgcg1213 / https_forward_proxy.js
Created June 14, 2016 16:47 — forked from tonygambone/https_forward_proxy.js
HTTP/HTTPS forward proxy in node.js
// HTTP forward proxy server that can also proxy HTTPS requests
// using the CONNECT method
// requires https://github.com/nodejitsu/node-http-proxy
var httpProxy = require('http-proxy'),
url = require('url'),
net = require('net'),
http = require('http');

Keybase proof

I hereby claim:

  • I am wssgcg1213 on github.
  • I am zeroling (https://keybase.io/zeroling) on keybase.
  • I have a public key whose fingerprint is 5985 E90F 3C09 A13E 2CCC BDC2 B59E 3454 810A ABAA

To claim this, I am signing this object:

find . -name "package.json" | xargs grep "\"rax\":"
@wssgcg1213
wssgcg1213 / .webpackrc.js
Last active May 22, 2018 07:39
localize font
const axios = require('axios');
const { ConcatSource, RawSource } = require('webpack-sources');
const { createWriteStream } = require('fs');
const { dirname, join } = require('path');
const mkdirp = require('mkdirp');
module.exports = {
plugins: [
new class {
constructor() {
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = NO
ALTERNATE_GROUP = staff
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = grantdavis
ALWAYS_SEARCH_USER_PATHS = NO
ALWAYS_USE_SEPARATE_HEADERMAPS = YES
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
APPLE_INTERNAL_DIR = /AppleInternal
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation
@wssgcg1213
wssgcg1213 / test.html
Created October 17, 2023 04:05
useEffect with conditional expression functions
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test for useEffect with rax.js and React</title>
<script src="https://g.alicdn.com/code/lib/rax/1.2.3/rax.min.umd.js"></script>
<script src="https://g.alicdn.com/code/lib/driver-dom/2.2.2/driver-dom.umd.min.js"></script>
<script src="https://g.alicdn.com/code/lib/react/18.2.0/umd/react.production.min.js"></script>