Skip to content

Instantly share code, notes, and snippets.

View ibelem's full-sized avatar
🖖

Belem Zhang ibelem

🖖
  • Intel Corporation
  • Shanghai, PRC
  • X @ibelem
View GitHub Profile
@ibelem
ibelem / notepad.html
Last active August 29, 2015 14:10 — forked from jdkanani/notepad.html
data:text/html, <style type="text/css">.e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div class="e" id="editor"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("editor");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
<!--
For other language: Instead of `ace/mode/ruby`, Use
Markdown -> `ace/mode/markdown`
Python -> `ace/mode/python`
C/C++ -> `ace/mode/c_cpp`
Javscript -> `ace/mode/javascript`
Java -> `ace/mode/java`
Scala- -> `ace/mode/scala`
# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException
@ibelem
ibelem / adb
Last active August 29, 2015 14:03
$ python make_apk.py --package=org.china.autotest
--name=Badminton --app-root='/home/badminton' --app-local-path='index.html'
$ adb install Badminton_x86.apk
Get Activity from Crosswalk-8.36.170.0/Badminton/AndroidManifest.xml
<activity android:label="Badminton" android:name="org.china.autotest.BadmintonActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>