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
interface Constraint<INPUT, OUTPUT> { | |
suspend fun invoke(input: INPUT): OUTPUT? | |
} | |
abstract class SatisfyConstraint<INPUT, OUTPUT> : Constraint<INPUT, OUTPUT> { | |
abstract suspend fun isSatisfied(input: INPUT): Boolean | |
abstract suspend fun process(input: INPUT): OUTPUT | |
override suspend fun invoke(input: INPUT): OUTPUT? = |
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
afterEvaluate { | |
// Create tasks for creating fat frameworks and fat dsyms for sim and device | |
def binaryKinds = [ | |
// config, sim task, device task | |
new Tuple('Debug', linkDebugFrameworkIosSim, linkDebugFrameworkIosDevice), | |
new Tuple('Release', linkReleaseFrameworkIosSim, linkReleaseFrameworkIosDevice), | |
] |
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 ContextA(val valueA: String, val valueB: Int) | |
data class ContextB(val valueB: Int, val valueC: Int, val valueD: Double) | |
val theReader: Reader<Int, String> = | |
Reader().lift { b: Int -> "The number is $b!!!" } | |
val theReaderInA: Reader<ContextA, String> = theReader | |
.local(ContextA::valueB::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
const axios = require('axios') | |
/* ... */ | |
const params = new URLSearchParams() | |
params.append('name', 'Akexorcist') | |
params.append('age', '28') | |
params.append('position', 'Android Developer') | |
params.append('description', 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/') | |
params.append('awesome', true) |
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 Vex from 'vexflow'; | |
import React, {Component} from 'react'; | |
const { | |
Accidental, | |
Formatter, | |
Stave, | |
StaveNote, | |
Renderer, |