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://github.com/realm/realm-js/issues/370#issuecomment-270849466 | |
| export default class Realm { | |
| constructor(params) { | |
| this.schema = {}; | |
| this.callbackList = []; | |
| this.data = {}; | |
| this.schemaCallbackList = {}; | |
| params.schema.forEach((schema) => { | |
| this.data[schema.name] = {}; | |
| }); |
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.Log; | |
| import com.appandweb.prjtestdrivendev.BuildConfig; | |
| import com.squareup.okhttp.Interceptor; | |
| import com.squareup.okhttp.Request; | |
| import com.squareup.okhttp.Response; | |
| import com.squareup.okhttp.ResponseBody; | |
| import java.io.IOException; |
This gist is a workaround to this bug:
https://code.google.com/p/android/issues/detail?id=29472
No changes are needed to your current code but changing the extended fragment/activity class.
All you have to do is put this two classes in your code and make your activity extend MenuManagerActivity and your fragment MenuDelegatorFragment. If you are using Nested fragment you must make sure that all fragments containing nested Fragments with options menu also extend MenuDelegatorFragment (both if the parent fragment need an option menu both if it doesn't need it).
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
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | |
| <!-- Drop Shadow Stack --> | |
| <item> | |
| <shape> | |
| <padding | |
| android:bottom="1dp" | |
| android:left="1dp" | |
| android:right="1dp" |
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.Context; | |
| import android.os.Handler; | |
| import android.util.AttributeSet; | |
| import android.widget.TextView; | |
| public class TypeWriter extends TextView { | |
| private CharSequence mText; | |
| private int mIndex; | |
| private long mDelay = 150; //Default 150ms delay |
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.app.Activity; | |
| import android.content.Context; | |
| import android.view.View; | |
| import android.view.inputmethod.InputMethodManager; | |
| /** | |
| * Utility methods for manipulating the onscreen keyboard | |
| */ | |
| public class KeyboardUtil { |
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 | |
| /** | |
| * Is RTL | |
| * Check if there RTL characters (Arabic, Persian, Hebrew) | |
| * | |
| * @author Khaled Attia <sourcecode@khal3d.com> | |
| * @param String $string | |
| * @return bool | |
| */ |