This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function FindProxyForURL (url, host) { | |
if (isPlainHostName (host)) return "DIRECT"; | |
else { | |
const direct = "DIRECT"; | |
const work = "SOCKS 127.0.0.1:10080; DIRECT"; | |
const personal = "SOCKS5 127.0.0.1:10081; DIRECT"; | |
const secure = "SOCKS 127.0.0.1:10082; DIRECT"; | |
// personal services should be accessed directly | |
if (shExpMatch(host, "youtube.com") || shExpMatch(host, "*.youtube.com")) return personal; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys # for sys.stderr | |
import argparse | |
import subprocess | |
import json | |
class Xfsinv2json: | |
def parse_args(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gap.py | |
# (c) 2013 Mikael Vejdemo-Johansson | |
# BSD License | |
# | |
# SciPy function to compute the gap statistic for evaluating k-means clustering. | |
# Gap statistic defined in | |
# Tibshirani, Walther, Hastie: | |
# Estimating the number of clusters in a data set via the gap statistic | |
# J. R. Statist. Soc. B (2001) 63, Part 2, pp 411-423 |