This file contains 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
#!/bin/bash | |
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android |
This file contains 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
// Class for the runtime switch of localization | |
@SuppressLint("Registered") | |
open class LocalizedActivity : AppCompatActivity() { | |
override fun attachBaseContext(newBase: Context) { | |
super.attachBaseContext((updateBaseContextLocale(newBase))) | |
} | |
private fun updateBaseContextLocale(context: Context): Context { | |
val language = PreferenceManager.getDefaultSharedPreferences(context).getString("languages", Locale.getDefault().language) | |
val locale = Locale(language) |
This file contains 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
version: 2 | |
jobs: | |
build: | |
working_directory: ~/code | |
docker: | |
- image: circleci/android:api-26-alpha | |
environment: | |
JVM_OPTS: -Xmx3200m | |
steps: | |
- checkout |
This file contains 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 $CLASS_NAME$ implements ResubscriptionObserver<$SUB_CLASS_NAME$> { | |
@Override | |
public String resubscriptionTag() { | |
return $OBSERVER_STRING_TAG$ | |
} | |
@Override | |
public void onCompleted() { | |
} |
This file contains 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
// check intent for run | |
public boolean isIntentAvailable(Intent intent) { | |
PackageManager packageManager = getPackageManager(); | |
List<ResolveInfo> activities = packageManager.queryIntentActivities(intent, 0); | |
return activities.size() > 0; | |
} |
This file contains 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
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=78FA8D85D5112D46B0C0176BBE4641C5/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=78FA8D85D5112D46B0C0176BBE4641C5/Shortcut/@EntryValue">ctxvm</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=78FA8D85D5112D46B0C0176BBE4641C5/Text/@EntryValue">DataContext="{Binding $NAME$, Source={StaticResource Locator}}"</s:String> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=78FA8D85D5112D46B0C0176BBE4641C5/Reformat/@EntryValue">True</s:Boolean> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=78FA8D85D5112D46B0C0176BBE4641C5/ShortenQuali |
This file contains 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
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=2CC977F4AE46A64FB65FC6859877C200/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=2CC977F4AE46A64FB65FC6859877C200/Shortcut/@EntryValue">res</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=2CC977F4AE46A64FB65FC6859877C200/Text/@EntryValue">{Binding Path=LocalizedResources.$RESOURCE_NAME$, Source={StaticResource LocalizedStrings}}</s:String> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=2CC977F4AE46A64FB65FC6859877C200/Reformat/@EntryValue">True</s:Boolean> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=2CC977F4AE46A64FB65 |
This file contains 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
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=5514B69ED2205C46A8053CB3E6013819/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=5514B69ED2205C46A8053CB3E6013819/Shortcut/@EntryValue">cmd</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=5514B69ED2205C46A8053CB3E6013819/Description/@EntryValue">Command in MVVM .cs</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=5514B69ED2205C46A8053CB3E6013819/Text/@EntryValue">public ICommand $Name$Command { get; private set; }
 | |
private void $Name$()
 | |
{
 | |
$END$
 | |
} </s:String> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplate |
This file contains 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
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A5EC5B6595190D44B55F260E55AE9B01/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A5EC5B6595190D44B55F260E55AE9B01/Shortcut/@EntryValue">trig</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A5EC5B6595190D44B55F260E55AE9B01/Description/@EntryValue">Create interaction trigger.</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A5EC5B6595190D44B55F260E55AE9B01/Text/@EntryValue"><i:Interaction.Triggers>
 | |
<i:EventTrigger EventName="$EventName$">
 | |
<cmd:EventToCommand Command="{Binding $Command$}" />
 | |
&l |
This file contains 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
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7F89BC92CB2B9341B730F25D72B06C03/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7F89BC92CB2B9341B730F25D72B06C03/Shortcut/@EntryValue">propn</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7F89BC92CB2B9341B730F25D72B06C03/Description/@EntryValue">Property with RaisePropertyChanged</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=7F89BC92CB2B9341B730F25D72B06C03/Text/@EntryValue">private $Type$ _$pName$;
 | |
public $Type$ $Name$
 | |
{
 | |
get { return _$pName$; }
 | |
set
 | |
{
 |
NewerOlder