Skip to content

Instantly share code, notes, and snippets.

View harshadura's full-sized avatar

Harsha Siriwardena harshadura

View GitHub Profile
@rocboronat
rocboronat / PermissionGranter.java
Last active December 26, 2022 07:05
Tap the "allow" button while running an Android instrumental test using UIAutomator
package com.fewlaps.android.permissiongranter;
import android.app.Activity;
import android.content.pm.PackageManager;
import android.os.Build;
import android.support.test.uiautomator.UiDevice;
import android.support.test.uiautomator.UiObject;
import android.support.test.uiautomator.UiObjectNotFoundException;
import android.support.test.uiautomator.UiSelector;
import android.support.v4.content.ContextCompat;
@uzanysa
uzanysa / malay.txt
Created June 23, 2015 10:44
OpenMRS iOS Bahasa Melayu/ Malay Translation
/* Address */
"Address" = "Alamat";
/* Birth date of person */
"BirthDate" = "Tarikh Lahir";
/* Is birth date estimated? */
"BirthDate Estimated" = "Anggaran Tarikh Lahir";
/* Error message */
@mediavrog
mediavrog / EditText.xml
Created June 4, 2014 02:27
Cursor not visible in EditText in Jelly Bean - this happens if you set a background for the field; to fix it, set the cursorDrawable to @null. Always use this combination when using custom backgrounds.
<EditText
android:id="@+id/my_edit_text"
...
android:background="@drawable/some_bg"
android:textCursorDrawable="@null" />
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 7, 2024 19:32
A badass list of frontend development resources I collected over time.
@jmervine
jmervine / gist:2079897
Created March 18, 2012 19:04
installing mysql on ubuntu using an aws instance
$ sudo apt-get install mysql-server mysql-client
... output omitted ...
$ sudo mysqladmin -u root -h localhost password 'password'
... output omitted ...
$ mysql -u root -p
... output omitted ...
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'your_host_name' IDENTIFIED BY "password";
Query OK, 0 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES;