Android | Xamarin.Forms |
---|---|
Android Studio | Rider, Visual Studio |
Kotlin, Java | C# |
Gradle | .NET SDK, NuGet |
OkHttp, Retrofit, Volley | RestSharp, HttpClient |
Moshi | Json.NET |
Activity | ContentPage |
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.joshayoung.mobiledevcampusminichallenges | |
import android.os.Bundle | |
import androidx.activity.ComponentActivity | |
import androidx.activity.compose.setContent | |
import androidx.activity.enableEdgeToEdge | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.clickable | |
import androidx.compose.foundation.layout.Arrangement | |
import androidx.compose.foundation.layout.Box |
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
[Fact] | |
public void Refresh_Called_CalledPullNotesOnCollection() | |
{ | |
this.collection.Configure().When(d => d.PullNotes()).DoNotCallBase(); | |
var sut = new NoteCollectionViewModel(this.collection); | |
sut.Refresh(); | |
this.collection.Configure().Received().PullNotes(); | |
} |
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 void ButtonClickedEvent(object sender, EventArgs e) | |
{ | |
var myViewModel = (MyViewModel)((BindableObject) sender).BindingContext; | |
// The rest of the code. | |
} |
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
<Entry Placeholder="First Name" x:Name="firstName" /> | |
<Entry | |
BackgroundColor="LightGray" | |
IsEnabled="False" | |
Placeholder="Last Name"> | |
<Entry.Triggers> | |
<!-- Enabled this field after 'firstName' is longer than three characters --> | |
<DataTrigger | |
Binding="{Binding Source={x:Reference firstName}, Path=Text.Length}" | |
TargetType="Entry" |
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
<Entry Placeholder="Test Value"> | |
<Entry.Triggers> | |
<Trigger TargetType="Entry" Property="Text" Value="Change When This Value"> | |
<!-- The 'Entry' field will get these values when the text in the Entry matches the 'Value' above --> | |
<Setter Property="BackgroundColor" Value="Tomato" /> | |
<Setter Property="Scale" Value="2" /> | |
<Setter Property="TextColor" Value="White" /> | |
</Trigger> | |
</Entry.Triggers> |
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
if (!(((VisualElement)sender).BindingContext is ViewModel ViewModel)) return; |
This file aims to explain how to deploy Portainer inside a compose file with the admin password already set.
For this example, we'll use the password superpassword
.
Use the following command to generate a hash for the password:
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
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |