One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
import javax.xml.xpath.XPathConstants | |
import javax.xml.xpath.XPathFactory | |
// Set output filename of APK based on version code from manifest when doing release build | |
// Note: This script will add a couple of seconds to the build script build time | |
gradle.projectsEvaluated { | |
preReleaseBuild.doFirst { | |
android.applicationVariants.all { variant -> | |
// Check version number configured in AndroidManifest | |
if (variant.name != "release") return |
/* | |
* Copyright 2014 Chris Banes | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
#!/usr/bin/env sh | |
USER_NAME="Veaceslav Gaidarji" | |
USER_EMAIL="[email protected]" | |
echo "Using config: \n user.name=$USER_NAME, \n user.email=$USER_EMAIL\n" | |
for dir in */; | |
do | |
cd $dir |
So I got annoyed at always having to reconnect to Stetho, and I figured there would be some better way to do this in Android Studio ... and maybe there is, but this is the best I've gotten so far. Putting this together in a gist was inspired by a question on reddit: https://www.reddit.com/r/androiddev/comments/7hz3xy/stetho_anyone_know_of_a_convenient_way_to/
:app:launchStetho
before the app launcheslaunchctl
(docs) to start an out-of-band AppleScript automation open-stetho.applescript
click()
against that DOM element/* | |
MIT License | |
Copyright (c) 2019 Erik Hellman | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.test.TestCoroutineDispatcher | |
import kotlinx.coroutines.test.TestCoroutineScope | |
import kotlinx.coroutines.test.resetMain | |
import kotlinx.coroutines.test.setMain | |
import org.junit.jupiter.api.extension.AfterAllCallback | |
import org.junit.jupiter.api.extension.AfterEachCallback | |
import org.junit.jupiter.api.extension.BeforeAllCallback | |
import org.junit.jupiter.api.extension.ExtendWith | |
import org.junit.jupiter.api.extension.ExtensionContext |
The JaCoCo results from all subprojects shall be combined.
main
, but it might not.Question set for interviews | |
Developer | |
Tech | |
- [ ] How many projects do you have | |
- [ ] Which architectures approaches do you use | |
- [ ] Which swift version / legacy objc, c what are you going to do with it. | |
- [ ] Do you do layout in xibs or in code? | |
- [ ] What do you think about reactive programming (RxSwift) |
const fs = require('fs'); | |
// our demo string is in 'default' utf8 with emoji character assuming you are using an editor that supports those. | |
// if not, you can test this gist by setting utf8string to the equivalent '->\ud83d\ude03\ud83e\uddd2\ud83c\udffc\u00fc\u010d\u0113<-' | |
// gist doesn't support all ZWJ sequences, so can't show this here but it works with those as well, e.g. '\ud83d\udc68\ud83c\udffc\u200d\ud83d\udcbb' | |
const utf8string = '->😃🧒🏼üčē<-'; | |
// this is what you'd usually do to write to a utf-8 encoded file | |
fs.writeFileSync('test-utf8.txt', utf8string); |