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
| https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png |
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
| <?php | |
| // Preparing response data. | |
| $response = json_encode([ | |
| 'success' => true, | |
| 'time' => date('Y-m-d H:i:s') | |
| ]); | |
| // Keep process running after | |
| // connection closed by the browser. |
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
| box-shadow:inset 0 1px 0 rgba(255,255,255,.6), 0 22px 70px 4px rgba(0,0,0,0.56), 0 0 0 1px rgba(0, 0, 0, 0.3); |
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
| php -a | |
| php > $a = 'A'; while (true) { echo $a; echo ' '; $a++; sleep(1); } | |
| A B C D E F G H I J K L M N O P Q R S T U V W X Y Z AA AB AC AD AE AF AG AH AI AJ AK AL AM AN AO AP AQ AR AS AT AU AV AW | |
| AX AY AZ BA BB BC BD BE |
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
| <?php | |
| $funArrRotate = function (&$array, $rotate_count) { | |
| for ($i = 0; $i < $rotate_count; $i++) { | |
| array_push($array, array_shift($array)); | |
| } | |
| }; | |
| $numbers = []; | |
| for ($x = 1; $x <= 12; $x++) { | |
| $numbers[] = $x; |
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
| // layout: | |
| // <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| // ... | |
| // android:fitsSystemWindows="false"> | |
| // ... | |
| // activiy: | |
| // ... | |
| myLinear.post { | |
| val dm = DisplayMetrics() |
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
| Observable.interval(1, TimeUnit.MICROSECONDS) | |
| .toFlowable(BackpressureStrategy.DROP) | |
| .observeOn(Schedulers.io(), false, 1) | |
| .doOnNext { t -> | |
| println(t) | |
| try { | |
| Thread.sleep(1000) | |
| } catch (e: Exception) { | |
| // |
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
| var subscription: Subscription? = null | |
| Observable.interval(1, TimeUnit.MICROSECONDS) | |
| .toFlowable(BackpressureStrategy.DROP) | |
| .observeOn(Schedulers.io(), false, 1) | |
| .subscribe(object : Subscriber<Long?> { | |
| override fun onComplete() { | |
| // | |
| } | |
| override fun onSubscribe(s: Subscription?) { |
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.util.Base64 | |
| import android.util.Log | |
| import java.security.Security | |
| import java.util.* | |
| import javax.crypto.Cipher | |
| import javax.crypto.KeyGenerator | |
| import javax.crypto.spec.IvParameterSpec |
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
| Mobile App Development, | |
| Android, | |
| Kotlin, | |
| RxJava, | |
| Firebase, | |
| Pusher, | |
| RESTful API, | |
| Laravel, | |
| Java, | |
| Flutter, |