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
| fun Context.internetAvailable(): Boolean { | |
| val connectivityManager = this.getSystemService(CONNECTIVITY_SERVICE) as ConnectivityManager | |
| return connectivityManager.getNetworkCapabilities(connectivityManager.activeNetwork)?.hasCapability(NET_CAPABILITY_INTERNET) == true | |
| } |
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/env python | |
| from TwitterAPI import TwitterAPI | |
| api = TwitterAPI( \ | |
| consumer_key='xxx', \ | |
| consumer_secret='xxx', \ | |
| access_token_key='xxx', \ | |
| access_token_secret='xxx' \ | |
| ) |
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
| apply plugin: 'com.android.application' | |
| repositories { | |
| maven { | |
| name "Fyber's maven repo" | |
| url "https://fyber.bintray.com/maven" | |
| } | |
| maven { | |
| name "ironSource's maven repo" | |
| url "https://dl.bintray.com/ironsource-mobile/android-sdk" |
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
| /** | |
| * Copyright 2011 Layar BV. All rights reserved. | |
| * Support: http://devsupport.layar.com | |
| * By implementing the LayarPlayer in your application, you agree to the Terms and Conditions | |
| * described in the Layar_Software_Development_Kit_License_Agreement.pdf file which can be found | |
| * in the LayarPlayer SDK zip file. | |
| */ | |
| package com.test.ARdemo; | |
| import java.util.Hashtable; |