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
| package com.uchidev.kotlin_ex.tool | |
| import java.io.Closeable | |
| import java.io.InputStreamReader | |
| interface DirNode: Closeable { | |
| fun getDirName(): CharSequence | |
| fun onContent(name: CharSequence, operation: (bodyReader: InputStreamReader?) -> Unit) | |
| fun eachContentNode(operation: ((name: CharSequence, bodyReader: InputStreamReader) -> Unit)) | |
| fun eachChildrenDirNode(operation: ((DirNode) -> Unit)) |
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
| ctr <- caps 1d 3a | |
| esc <- H/Z(K) 01 29 | |
| H/Z(K) <- esc 29 01 | |
| 00,00,00,00, 00,00,00,00, | |
| 04,00,00,00, 1d,00,3a,00, | |
| 01,00,29,00, 29,00,01,00, | |
| 00,00,00,00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] |
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 class TargetProvider extends ContentProvider { | |
| final private String tag; | |
| final private String providerName; | |
| final private String dbName; | |
| final private String tableName; | |
| private SQLiteOpenHelper dbHelper = null; | |
| private UriMatcher uriMatcher = null; | |
| public TargetProvider(String providerName, String dbName, String tableName, String tag) { |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\DWM] | |
| "Composition"=dword:00000001 | |
| "ColorPrevalence"=dword:00000001 | |
| "ColorizationColor"=dword:c4515c6b | |
| "ColorizationColorBalance"=dword:00000059 | |
| "ColorizationAfterglow"=dword:c4515c6b | |
| "ColorizationAfterglowBalance"=dword:0000000a | |
| "ColorizationBlurBalance"=dword:00000001 |
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
| AppCompatTextView textView = view.findViewByIdR.id.text); | |
| textView.setTextAppearance(textView.getContext(), R.style.ItemText); | |
| textView.setBackgroundResource(R.drawable.item_bg); | |
| textView.setText("Hello"); |
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.test.AndroidTestCase; | |
| import android.test.RenamingDelegatingContext; | |
| import static org.junit.Assert.*; | |
| import static org.hamcrest.CoreMatchers.*; | |
| public class MySQLitHelperTest extends AndroidTestCase { | |
| private Context context; |
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.support.annotation.Nullable; | |
| import android.os.Handler; | |
| import android.os.Looper; | |
| import android.os.Message; | |
| import java.lang.ref.WeakReference; | |
| public abstract class ThreadModule { | |
| private Handler mHandler; | |
| private boolean mInitialized = false; |
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
| private class ExternalStorage { | |
| public List<String> getDirPathList() { | |
| try { | |
| return getDirPathList(Environment.getExternalStorageDirectory().getCanonicalFile()); | |
| } catch (IOException e) { | |
| return emptyList(); | |
| } | |
| } |
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 'concat '("a" "b")) | |
| ;; "ab" | |
| (mapconcat #'(lambda (x) x) '("a" "b") "") | |
| ;; "ab" | |
| (mapconcat #'(lambda (x) (char-to-string x)) "ab" "") | |
| ;; "ab" | |
| (mapconcat #'(lambda (x) (char-to-string x)) '(?a ?b) "") |