Skip to content

Instantly share code, notes, and snippets.

View nbransby's full-sized avatar

Nicholas Bransby-Williams nbransby

View GitHub Profile
Companion@16f0a43a:ProjectModel@1e8b2071 java.lang.RuntimeException: dev.gitlive.model.GitException: 128: No tags can describe 'a0bb9d425cc33de08dc27ffaaf4689d50467754c'.
Try --always, or create some tags.
java.lang.RuntimeException: dev.gitlive.model.GitException: 128: No tags can describe 'a0bb9d425cc33de08dc27ffaaf4689d50467754c'.
Try --always, or create some tags.
at dev.gitlive.progress.Progress.getNullOrThrow-impl(Progress.kt:88)
at dev.gitlive.progress.flow.TransformKt$asValue$$inlined$mapNotNull$1$2.emit(Emitters.kt:51)
at dev.gitlive.internal.model.team.LocalRepository$upstreamRemoteOrNull$$inlined$mapProgress$1$2.emit(Emitters.kt:50)
at kotlinx.coroutines.flow.internal.FlowValueWrapperInternalKt.emitInternal(FlowValueWrapperInternal.kt:39)
at kotlinx.coroutines.channels.BufferedChannel.emitAllInternal$kotlinx_coroutines_core(BufferedChannel.kt:1581)
@nbransby
nbransby / Cucumber.java
Created June 2, 2018 10:02
testInstrumentationRunner (replacement for android.support.test.runner.AndroidJUnitRunner) and a org.junit.runner.Runner (replacement for cucumber.api.junit.Cucumber) that combines cucumber-android (2.40) and cucumber-junit (2.40) to run scenarios isolated in seperate processes via orchestrator 1.0.2
package cucumber.runtime.android;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.runner.Description;
import org.junit.runner.notification.RunNotifier;
MATCH (them:User)
//find out the lowest number of rating for any one of them
WITH them, min(size((them)<-[:RATED]-(:User))) as min_rating_count
//get all of them who share this lowest number of ratings
WITH them WHERE size((them)<-[:RATED]-(:User)) = min_rating_count RETURN them
# Welcome to Serverless!
#
# This file is the main config file for your service.
# It's very minimal at this point and uses default values.
# You can always add more config options for more control.
# We've included some commented out config examples here.
# Just uncomment any of them to get that config option.
#
# For full config options, check the docs:
# docs.serverless.com
@nbransby
nbransby / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
task translateJava(type:Exec) {
inputs.files configurations.runtime.allDependencies.dependencyProject.sourceSets.main.allJava.inject(sourceSets.main.allJava) { acc, val -> acc.plus(val) }
outputs.files files((configurations.runtime.allDependencies.dependencyProject.sourceSets.main.allJava + sourceSets.main.allJava).collect { i ->
i.collect { j ->
def name = j.path.replace(i.srcDirs.iterator().next().path, file('src/gen/objc').path)
return [name.replace('.java', '.h'), name.replace('.java', '.m')]
}
}.flatten())
executable System.getenv()['J2OBJC_HOME'] + '/j2objc'
args '--prefixes', file('src/main/resources/prefixes.properties').path