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
package com.operator.android; | |
import android.content.Context; | |
import android.os.Parcel; | |
import android.os.Parcelable; | |
import android.view.View; | |
/** | |
* A custom {@link View} that demonstrates how to save/restore instance state. | |
*/ |
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
//detect network adaptor in java |
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 os | |
osName_ = os.name | |
print(osName) |
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 sys | |
import time | |
s = time.time() | |
N = int(sys.argv[1]) | |
prime = [True]*N | |
prime[0] = False | |
prime[1] = False |