- 平衡设备之间可以完全地互相转换,只要接口线序一一对应不出错
This file contains hidden or 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
| /* | |
| ** Buggy-Mouse.ahk - Fix a buggy mouse. Stop it from double-clicking when you try to single-click. | |
| ** | |
| ** NOTE: Please use this URL when linking to Buggy Mouse: r.secsrv.net/AutoHotkey/Scripts/Buggy-Mouse | |
| ** | |
| ** Updated: Thu, Nov 1, 2012 --- 11/1/12, 10:19:19am EDT | |
| ** Location: r.secsrv.net/AutoHotkey/Scripts/Buggy-Mouse | |
| ** | |
| ** Keywords: mouse double clicks when I click once | |
| ** Keywords: mouse double clicks when I single click |
This file contains hidden or 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
| { | |
| "rules": [ | |
| { | |
| "description": "change home key to command + left_arrow", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "home" | |
| }, | |
| "to": [ |
This file contains hidden or 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/python | |
| from selenium import webdriver | |
| from PIL import Image | |
| from cStringIO import StringIO | |
| verbose = 1 | |
| browser = webdriver.Firefox() | |
| browser.get('http://stackoverflow.com/questions/37906704/taking-a-whole-page-screenshot-with-selenium-marionette-in-python') |
This file contains hidden or 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
| { | |
| "presets": [ | |
| { | |
| "Name": "Major", | |
| "Value": "1;3;5;6;8;10;12", | |
| "Group": "Common" | |
| }, | |
| { | |
| "Name": "Minor", | |
| "Value": "1;3;4;6;8;9;11", |
This file contains hidden or 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
| class Node(): | |
| def __init__(self,key): | |
| self.key = key | |
| self.left = None | |
| self.right = None | |
| self.parent = None | |
| class Tree(): |
This file contains hidden or 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
| '''Implementation and of K Means Clustering | |
| Requires : python 2.7.x, Numpy 1.7.1+''' | |
| import numpy as np | |
| def kMeans(X, K, maxIters = 10, plot_progress = None): | |
| centroids = X[np.random.choice(np.arange(len(X)), K), :] | |
| for i in range(maxIters): | |
| # Cluster Assignment step | |
| C = np.array([np.argmin([np.dot(x_i-y_k, x_i-y_k) for y_k in centroids]) for x_i in X]) |
NewerOlder

