Neo

Results 9 comments of Neo

> Include the flag `-lcs50` when you compile the code. error is `cannot find -lcs50` I have added both `cs50.c` and `cs50.h` into the `include` folder of gcc.

> you need to include cs50.c in your folder and compile both files together on command line > gcc -o out appname.c cs50.c On windows, maybe you are the only...

OK guys, finally I solve it totally! To give you motivation first: ![image](https://user-images.githubusercontent.com/15784314/100889365-0117d080-34f2-11eb-9baf-fe682c8266b9.png) You can have highlight and intelligent code completion when you are coding. (Notice `string` and `get_string()` are...

> I took the exact steps and successfully built hello.c but string.c is giving me an error: `undefined` reference to 'get_string'. Can someone please help Take it easy. I recommend...

https://github.com/cs50/libcs50/issues/189#issuecomment-737173845 My full solution for VSCode on Windows. Step by step inside. On Windows to run it is not easy, I figure it out till today. In fact, compiling many...

> 你可以把你想黑白名单的域名放进一个 [Set](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Set) 里面,然后在 `function FindProxyForURL` 最前面插入判断并直接返回 `proxy` 或 `direct`。 我发现现在的脚本已经自带`BLACKPAT`,但是不知道该怎么填写。我直接填了一个域名以后,整个pac都失效了,无法联网。

> 现在的脚本里的 `BLACKPAT` 是一个数组,数组里每一项是一个通配符表达式(见 [`shExpMatch()`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_(PAC)_file#shExpMatch)),请确保你的 JavaScript 语法是正确的,否则整个 PAC 文件会解析失败。 `var BLACKPAT = ["*.ipip.net"];` 这样填写全网域名解析仍然生效,但是ipip.net仍然是直连,具体该怎么办呢? 我大概读懂几个function会把array中的string一一匹配,有则返回true,则返回proxy。但是实在不知道数组中的这个string该怎么填,试验了好几种写法也不见效。

刚刚想了想,可能是结尾也没跟着匹配,所以返回了false。 `"*.ipip.net/*" `测试成功。 但不知是否有更好的写法?还望能倾囊相授。

> `BLACKPAT` 和 `WHITEPAT` 是匹配整个 URL 的,如果想仅靠域名匹配的话稍微麻烦点,我把域名按 zone 重新组合成了前面的 `DOMAINS` 变量,格式如下: > > ```js > var DOMAINS = { > "com": { > "example": 0, > "google": { > "@":...