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
import java.io.File | |
// Get the passed in file, i.e. "-f some/path" or use the default file name | |
val file = if (args.contains("-f")) args[1 + args.indexOf("-f")] | |
else "commit_messages.log" | |
File("${file}_clean").printWriter().use { out -> | |
File(file).forEachLine { msg -> | |
if (msg.startsWith("Merge pull request").not()) { | |
out.println(msg) |
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 ConfettiJobCreator @Inject constructor( | |
private val jobs: @JvmSuppressWildcards Map<String, Provider<Job>> | |
) : JobCreator { | |
override fun create(tag: String): Job? = jobs[tag]?.get() | |
} |
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
import 'dart:math' show min; | |
import 'package:flutter/material.dart'; | |
class UniqueId extends StatefulWidget { | |
const UniqueId({Key key, this.onSubmit}) : super(key: key); | |
final ValueChanged<String> onSubmit; |
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
@Singleton | |
@Component( | |
modules = { | |
AppModule.class, JobsModule.class | |
} | |
) | |
public interface AppComponent | |
{ | |
Application getApplication (); |
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
override fun createView(ui: AnkoContext<PlanetDetailFragment>): View { | |
return with(ui) { | |
val container = verticalLayout { | |
lparams(matchParent) | |
textView { | |
setLineSpacing(8f, 1f) | |
}.lparams { | |
topMargin = dip(16) | |
} |
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
companion object { | |
const val PMD_FILE_NAME = "pmd-ruleset.xml" | |
const val CHECKSTYLE_FILE_NAME = "checkstyle.xml" | |
const val FINDBUGS_FILE_NAME = "findbugs-exclude.xml" | |
const val WRITE_PMD_CONFIG_FILE_TASK = "writePmdConfigFile" | |
const val WRITE_CHECK_STYLE_CONFIG_FILE_TASK = "writeCheckStyleConfigFile" | |
const val WRITE_FIND_BUGS_EXCLUSION_FILE_TASK = "writeFindBugsExclusionFile" | |
const val VERIFICATION_GROUP = "verification" | |
const val PLUGIN_EXTENSION_NAME = "qualityChecks" | |
} |
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
@Reusable | |
public class Migration implements RealmMigration | |
{ | |
private Map<Integer, Provider<VersionMigration>> versionMigrations; | |
@Inject | |
Migration (Map<Integer, Provider<VersionMigration>> versionMigrations) | |
{ | |
this.versionMigrations = versionMigrations; | |
} |
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
public class Migration implements RealmMigration | |
{ | |
@Override | |
public void migrate (DynamicRealm realm, long oldVersion, long newVersion) | |
{ | |
RealmSchema schema = realm.getSchema(); | |
if ( oldVersion == 1 ) | |
{ | |
RealmObjectSchema recipeSchema = schema.get( "Recipe" ); |
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
package info.adavis.sample.models; | |
/** | |
* Sample Domain Object used for demonstration | |
* | |
* @author Annyce Davis | |
*/ | |
public class Video { | |
private long id; |
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
package info.adavis.sample.models; | |
/** | |
* Sample Domain Object used for demonstration | |
* | |
* @author Annyce Davis | |
*/ | |
public class Video { | |
private long id; |