Skip to content

Instantly share code, notes, and snippets.

doubledouble

Block or report user

Report or block doubledouble

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andy12530
andy12530 / gist:4064621
Created Nov 13, 2012
为不支持的浏览器添加getElementsByClassName与querySelectorAll方法
View gist:4064621
/*
document.getElementById();
document.getElementsByTagName();
document.getElementsByName();
以上三种方法在主流浏览器中得到原生支持,但是通过class取得元素以及通过css选择器的方式取得元素,即
getElementsByClassName与querySelectorAll未在IE6、7、8中得到完全支持
*/
@roydekleijn
roydekleijn / SessionStorage.java
Created Oct 29, 2012
Selenium WebDriver Javascript execution for sessionStorage
View SessionStorage.java
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
public class SessionStorage {
private JavascriptExecutor js;
public SessionStorage(WebDriver driver) {
this.js = (JavascriptExecutor) driver;
}
@mrsombre
mrsombre / centos
Last active Feb 27, 2017
CentOS VirtualBox install
View centos
=== Symlink Support in Windows
The first step is installing Polsedit - User Policies Editor. When you open it, look for Create symbolic links.
http://www.southsoftware.com/polsedit.zip
Double click the row, click Add User or Group... and look for your username in the list.
Closing the app will automatically save your choices, and you'll need to reboot your machine.
=== Updating fresh system
;; Edit /etc/yum.conf and set installonly_limit: 2
yum upgrade
reboot
You can’t perform that action at this time.