Skip to content

Instantly share code, notes, and snippets.

View joecks's full-sized avatar

joecks

  • Flutter & Android Freelancer
  • Berlin
View GitHub Profile
@joecks
joecks / Dockerfile
Created May 24, 2023 14:55
lambda docker file with nodejs and python
FROM public.ecr.aws/lambda/python:3.10
SHELL ["/usr/bin/bash", "-c"]
RUN yum install -y tar gzip
RUN touch ~/.bashrc
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
RUN . ~/.nvm/nvm.sh && nvm install 12
RUN ln -s /root/.nvm/versions/node/v12.22.12/bin/node /usr/bin/node
COPY . ./
This file has been truncated, but you can view the full file.
[
{
"title": "Amy Poehler Announces Inside Out 2 and Ariana DeBose Performs at D23 2022",
"author": "",
"published_date": "2022-09-11 19:26:45",
"published_date_precision": "full",
"link": "https://www.ign.com/videos/amy-poehler-announces-inside-out-2-and-ariana-debose-performs-at-d23-2022",
"clean_url": "ign.com",
"rank": 649,
"topic": "gaming",
desc "Build and publish to MS AppCenter \n" \
"Available options:\n" \
"#{Options::help()}"
lane :publish do |options|
platform = options[Options::PLATFORM]
flavor = options[Options::FLAVOR]
config = Config::FLAVOR_MATRIX[flavor][platform]
appcenter_target = config[Keys::APPCENTER_TARGET]
appcenter_token = config[Keys::APPCENTER_TOKEN]
@joecks
joecks / gist:af4f1839c82b8e1dd15785e3bf4f457c
Last active May 12, 2020 12:24
Export ClipboardActions database to CSV

Preparation

  1. Install ADB (Android Debug Bridge, check tutorias online)
  2. Then install a linux subsystem (https://www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/) not neccessary on Linux or Mac OS
  3. Install Openssl and Python (check the internet for tutorials)

Steps:

  1. Connect your device with a cable to your computer and enable Developer option (please google how to do that)
  2. Allow access to your device once you connect the cable
  3. in the Terminal call: adb backup -noapk de.halfreal.clipboardactions (this will copy a backup from ClipboardActions on your device called backup.ab)
@DslMarker
annotation class ActionsMarker
/**
* Marker Interface to enforce correct method selection in IDE tab completion and context compile time scope enforcement
*/
@ActionsMarker
interface Actions
/**
class RideDetails : ScopedActions(idMatcher(R.id.ride_details_container)) {
fun inRideEditButton(action: UiActions.() -> Actions) =
UiActions(idMatcher(R.id.rideBookedDetailEdit)).action()
fun inRideMapButton(action: UiActions.() -> Actions) =
UiActions(idMatcher(R.id.map_item)).action()
fun inRideStopList(action: List.() -> Actions) =
List(R.id.ridesStopsRecycler).action()
class OpenRideMapTest : BaseRobotTest(
mockDependencyTestRule = mock(locationFound()),
testCase =
{
inLanding {
inLandingList {
inItem(2) { click() }
}
}
inDetails {
class MainViewModel : BaseReactViewModel<Data>(), TasksActions, AddEditActions {
override val initialViewData = TasksData
override fun onSaveTask() {
updateViewData(TasksData)
}
override fun onTaskDetails(taskId: String) {
updateViewData(EditTaskData(taskId))
// Definition of the provided dependencies of the MainActivity
class MainActivityDependencies(private val activity: FragmentActivity) : Dependencies {
override fun taskRepository(): TasksRepository {
return TasksRepository.getInstance(TasksRemoteDataSource.instance, TasksLocalDataSource.getInstance(activity))
}
fun mainViewModel(): MainViewModel = ViewModelProviders.of(activity).get(MainViewModel::class.java)
fun tasksActions(): TasksActions = mainViewModel()
interface TasksActions {
fun onTaskDetails(taskId: String)
fun onNewTask()
}
class TasksViewModel(private val tasksRepository: TasksRepository,
// The injected callbacks for highlevel actions like onNewTask, onTaskDetails
private val tasksActions: TasksActions) : BaseReactViewModel<TasksViewData>(),
// The taks item Actions
TasksViewItemActions,