I hereby claim:
- I am kibao on github.
- I am kibao (https://keybase.io/kibao) on keybase.
- I have a public key ASBSEDGosgtEcZUVY8RwdVa-4qK7gu_yqzWjogsI5j3sNAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| class Helper { | |
| public static boolean isAppForeground(Context context) { | |
| KeyguardManager keyguardManager = | |
| (KeyguardManager) context.getSystemService(KEYGUARD_SERVICE); | |
| if (keyguardManager.inKeyguardRestrictedInputMode()) { | |
| return false; | |
| } | |
| int myPid = Process.myPid(); | |
| List<RunningAppProcessInfo> runningAppProcesses = |
| import android.content.Context; | |
| import android.os.Bundle; | |
| import android.os.Parcel; | |
| import android.os.Parcelable; | |
| import android.support.annotation.NonNull; | |
| import android.support.annotation.Nullable; | |
| import android.support.v4.app.Fragment; | |
| import android.support.v4.app.FragmentManager; | |
| import android.support.v4.app.FragmentTransaction; | |
| import android.util.AttributeSet; |
| Verifying that +kibao is my blockchain ID. https://onename.com/kibao |
| <?php | |
| define('ITERATIONS', 1000 * 1000); | |
| function microtime_float() | |
| { | |
| list($usec, $sec) = explode(" ", microtime()); | |
| return ((float)$usec + (float)$sec); | |
| } |
| <?php | |
| namespace Serializer\Handler; | |
| use FOS\RestBundle\View\ViewHandler; | |
| use FOS\RestBundle\View\View; | |
| use Knp\Bundle\PaginatorBundle\Pagination\SlidingPagination; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\Routing\RouterInterface; |
| <?php | |
| namespace Infun\HttpFoundation\File; | |
| use Symfony\Component\HttpFoundation\File\File; | |
| class ApiUploadedFile extends File | |
| { | |
| public function __construct($base64Content) |
| InputStream response; | |
| ByteArrayOutputStream buf = new ByteArrayOutputStream(); | |
| int result = response.read(); | |
| while(result != -1) { | |
| byte b = (byte)result; | |
| buf.write(b); | |
| result = response.read(); | |
| } | |
| System.out.println(buf.toString()); |
| namespace.views.MyWizard = Backbone.Views.extend({ | |
| initialize: function() { | |
| _.bindAll(this, 'render', 'wizardMethod'); | |
| } | |
| render: function() { | |
| this.wizardMethod(); | |
| return this; | |
| }, |