Skip to content

Instantly share code, notes, and snippets.

View marukami's full-sized avatar

Mitchell Tilbrook marukami

  • Sydney, Australia
View GitHub Profile
@marukami
marukami / UnitTestingMvvmCross.md
Last active September 8, 2015 04:29
Unit Testing MvvmCross

Just some notes on Unit Testing MvvmCross.

#Setup Test Project

  1. Create an empty project
  2. NOTE: depending on how you setup your Xamarin project you might need multiple projects for iOS, Android and PCL
  3. Add the follow dependencies
  4. AutoFixture - Test Data Genertator
  5. Moq - Object Mocking framework
  6. MvvmCross
  7. NUnit
@marukami
marukami / Android_Studio_Plugins.md
Created December 7, 2015 02:48
Android Studio Plugins List

A list of Android Studio plugins i use. If you think I'm missing out of something, please leave a comment

  • ADB Idea - Add shortcuts for ADB commands inside Studio
  • .ignore - Syntax highlighting for .gitignore and more
  • Key promoter - A very good way to learn shortcut keys
  • Android Parcelable - A good plugin if you don't want to use https://github.com/johncarl81/parceler
  • Fabric - I'm using Fabric that's all
@marukami
marukami / PabloPicasso.kt
Last active July 13, 2018 03:07
Android Picasso Rewrite Retry Policy
// Kotlin conversion from https://gist.github.com/extralam/cda4ce0d7341b929efd4
// This could be better. For now this works
inline fun OkHttpClient.init(f: OkHttpClient.() -> Unit): OkHttpClient {
this.f()
return this
}
class PabloPicasso {
val picasso: Picasso
@marukami
marukami / Talk.MD
Last active April 12, 2016 13:23
Xamarin Android Talk - Sydney - April
@marukami
marukami / MonadBuilder.java
Created July 19, 2016 11:31
Monad Builder in Java
public static final class Builder {
private final String firstName;
private final String lastName;
private final String middleName;
public static Builder builder() {
return new Builder("", "", "");
}
private Builder(String firstName, String middleName, String lastName) {
@marukami
marukami / presentation.md
Last active May 24, 2017 09:16
F# News May
@marukami
marukami / react-typescript.md
Last active April 29, 2018 03:56
React TypeScript

footer: @sir_tilbrook

TypeScript React in 5min


TypeScript init

npm install -g typescript tslint
@marukami
marukami / slides.md
Created June 20, 2017 23:29
Why React and Android
@marukami
marukami / VSCode-dotnetcore.md
Created July 31, 2017 08:35
Setting up debugging for .NET Core in VSCode
  • Open VSCode in the primary project folder
  • Install C# for VSCode if not already done
    • This contains the .NET Core Debug templates
    • This might be overkill for now, but it work
  • Configure debugger as .NET Core
    • This should create a launch.json under .vscode in the current workspace root folder
  • Try running a debug session
    • This will result in the error Could not find the preLaunchTask 'build'. Press Configure Task Runner
    • Don't worry if you miss click and dismiss the promt, it will show the same error again.
    • Configure Task Runner will ask for a Task Runner again pick .NET Core
@marukami
marukami / dependencies.gradle
Last active January 10, 2018 20:11
Example shared dependencies.gralde
ext.versions = [
code : 1,
name : '1.0',
minSdk : 16,
targetSdk : 26,
compileSdk : 26,
buildTools : '26.0.1',