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
provider "aws" { | |
alias = "us-east-1" | |
region = "us-east-1" | |
} | |
provider "aws" { | |
alias = "us-west-2" | |
region = "us-west-2" | |
} |
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
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "usage: ./tools/openapi-generate <your_service> <project_id> <token>" | |
exit | |
fi | |
BASE_PATH=`pwd`"/$1/lib" | |
BASE_MODEL_PATH="$BASE_PATH/model" | |
GENERATED_PATH="$BASE_PATH/newversion/lib" |
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
// @flow | |
import * as React from 'react' | |
import { Animated, StyleSheet, Text, View, Dimensions, TouchableWithoutFeedback } from 'react-native' | |
import { | |
PanGestureHandler, | |
NativeViewGestureHandler, | |
State, | |
TapGestureHandler | |
} from 'react-native-gesture-handler' |
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 Movie( | |
var title: String, | |
var year: int, | |
var Description: String | |
) { | |
public constructor() : this("", 0, "") | |
} |
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 MovieService(private val iDataStore: IDataStore<Movie> = | |
Backendless.Data.of(Movie::class.java)) : IBackendlessService |
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 fun <R, T> (suspend R.() -> T).startCoroutine( | |
receiver: R, | |
completion: Continuation<T> | |
) { | |
createCoroutineUnchecked(receiver, completion).resume(Unit) | |
} |
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 actual override fun <T> interceptContinuation(continuation: Continuation<T>): Continuation<T> = | |
DispatchedContinuation(this, continuation) |
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
_pool.execute(timeSource.trackTask(block)) |
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
IntStream | |
.range(1, 1_000_000) | |
.parallel() | |
.sum() |
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 actual val DefaultDispatcher: CoroutineDispatcher = CommonPool |
NewerOlder