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
| import java.util.* | |
| import java.util.concurrent.TimeUnit | |
| fun main() { | |
| println("Hello, world!!!") | |
| compareDateTime() | |
| } |
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
| import android.content.BroadcastReceiver | |
| import android.content.ContentValues | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.graphics.Bitmap | |
| import android.net.Uri | |
| import android.os.Build | |
| import android.os.Parcelable | |
| import android.os.StrictMode | |
| import android.provider.MediaStore |
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
| implementation fileTree(dir: 'libs', include: ['*.jar']) | |
| //implementation(name: 'libBioMini_v20', ext: 'aar') | |
| implementation files('libs/telpo_api.jar') | |
| implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | |
| implementation 'androidx.appcompat:appcompat:1.1.0' | |
| implementation 'androidx.core:core-ktx:1.1.0' | |
| implementation 'androidx.constraintlayout:constraintlayout:1.1.3' | |
| testImplementation 'junit:junit:4.13' | |
| androidTestImplementation 'androidx.test.ext:junit:1.1.1' |
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
| Ion.with(ctx.applicationContext) | |
| .load(AppConfig.URL_IMAGE) | |
| .setTimeout(15000) | |
| // .setHeader("Authorization", "b7 " + chatService.get_token()) | |
| .uploadProgress { downloaded, total -> | |
| println("$downloaded / $total") | |
| val percentage2 = (0.5 + downloaded.toDouble() / total.toDouble() * 100).toInt() | |
| println(percentage2) | |
| //progressbar_picture.setProgress(percentage2); | |
| } |
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 main() { | |
| //// usuarios del celular registrados | |
| val sync_list_name_mobile = ArrayList<HashMap<String, String>>() | |
| val contactMap_initial = HashMap<String, String>() | |
| contactMap_initial.put("KEY_NAME", "PEDRO") | |
| contactMap_initial.put("mobile", "1111") |
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
| public abstract class EndlessRecyclerViewScrollListener extends RecyclerView.OnScrollListener { | |
| // The minimum amount of items to have below your current scroll position | |
| // before loading more. | |
| private int visibleThreshold = 5; | |
| // The current offset index of data you have loaded | |
| private int currentPage = 0; | |
| // The total number of items in the dataset after the last load | |
| private int previousTotalItemCount = 0; |
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
| Development Phase: | |
| Step 1: Create Certificate .pem from Certificate .p12 | |
| Command: openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12 | |
| Step 2: Create Key .pem from Key .p12 | |
| Command : openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12 | |
| Step 3: Optional (If you want to remove pass phrase asked in second step) | |
| Command : openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pem |
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' | |
| android { | |
| compileSdkVersion 21 | |
| buildToolsVersion "21.1.2" | |
| defaultConfig{ | |
| minSdkVersion 14 | |
| targetSdkVersion 21 | |
| versionCode 101 |
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
| <html> | |
| <body> | |
| <form action="/upload" enctype="multipart/form-data" method="post"> | |
| <input type="text" name="title"> | |
| <input type="file" name="file"> | |
| <input type="submit" value="Upload"> | |
| </form> | |
| </body> | |
| </html> |