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
data class Address( | |
val streetName: String, | |
val cityName: String, | |
val streetNumber: String, | |
val postalCode: String | |
) | |
fun address(block: AddressBuilder.() -> Unit) = AddressBuilder().apply(block).build() | |
@ShopDsl |
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
apply plugin: 'org.jetbrains.dokka-android' | |
dokka { | |
moduleName = "" | |
outputDirectory = "$rootDir/docs" | |
outputFormat = "html" | |
includes = ['extra.md'] | |
samples = ['src/sample'] |
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
buildTypes { | |
alpha { | |
initWith release | |
... |
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
android { | |
... | |
defaultConfig { | |
applicationId "io.github.asvid.flavorhell" | |
minSdkVersion 16 | |
targetSdkVersion 27 | |
versionCode buildDateTime | |
versionName "4.0.12" | |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
} |
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
Verifying my Blockstack ID is secured with the address 1EJWWgVvD9UVegmtvCfzZEuPxtqDRv9z3q https://explorer.blockstack.org/address/1EJWWgVvD9UVegmtvCfzZEuPxtqDRv9z3q |
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
var query = {ean: productJson.ean}, | |
options = {upsert: true, new: true, setDefaultsOnInsert: true}; | |
Product.findOneAndUpdate(query, productJson, options, function (error, item) { | |
if (!!error) { | |
res.status(400).json(error) | |
} else { | |
res.status(201).json({"msg": "document created"}) | |
} | |
}); |