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
import requests | |
import webbrowser | |
sites = ["https://en.wikipedia.org/wiki", | |
"http://www.bing.com/images/search"] | |
def openPage(x): | |
w = " " | |
if x == 0: | |
w = "wiki" |
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
import requests | |
import webbrowser | |
sites = ["http://www.bing.com/images/search"] | |
def openPage(x): | |
w = " " | |
if x == 1: | |
w = "bing img" |
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
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
if (!checkIsSupportedDeviceOrFinish(this)) { | |
return; | |
} | |
setContentView(R.layout.activity_ux); | |
arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.ux_fragment); |
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
ModelRenderable.builder() | |
.setSource(this, Uri.parse("taka.sfb")) //(this, R.raw.andy) | |
.build() | |
.thenAccept(renderable -> andyRenderable = renderable) | |
.exceptionally( | |
throwable -> { | |
Toast toast = | |
Toast.makeText(this, "Unable to load andy renderable", Toast.LENGTH_LONG); | |
toast.setGravity(Gravity.CENTER, 0, 0); | |
toast.show(); |