Record your screencasts as movie files (.mov) using quicktime.
- Install yasm http://yasm.tortall.net/Download.html
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-android-extensions' | |
android { | |
compileSdkVersion 25 | |
buildToolsVersion "25.0.2" | |
defaultConfig { | |
applicationId "com.example.kxt" | |
minSdkVersion 15 |
private static class ImmediateSchedulersRule implements TestRule { | |
@Override | |
public Statement apply(final Statement base, Description description) { | |
return new Statement() { | |
@Override | |
public void evaluate() throws Throwable { | |
RxJavaPlugins.setIoSchedulerHandler(scheduler -> | |
Schedulers.trampoline()); | |
RxJavaPlugins.setComputationSchedulerHandler(scheduler -> | |
Schedulers.trampoline()); |
import java.util.Arrays; | |
class NonCapturing { | |
public static void main(String... args) { | |
run(new Runnable() { | |
@Override public void run() { | |
System.out.println("Hey!"); | |
} | |
}); | |
} |
Record your screencasts as movie files (.mov) using quicktime.
#!/bin/bash | |
# | |
# Creates a signed and zipaligned APK from your Ionic project | |
# | |
# Place your keystore in the root of your project and name it <company>.keystore | |
# Use this script as following : | |
# $ ./release.sh [company] [version] | |
# | |
# Don't forget to gitignore your key and your compiled apks. | |
# |
When [Markdown][markdown] appeared more than 10 years ago, it aimed to make it easier to express ideas in an easy-to-write plain text format. It offers a simple syntax that takes the writer focus away from the formatting, thus giving her time to focus on the actual content.
The market abunds of editors to be used for help with markdown. After a few attempts, I settled to Sublime and its browser preview plugin, which work great for me and have a small memory footprint to accomplish that. To pass the results around to other people, less technical, a markdown file and a bunch of images is not the best approach, so converting it to a more robust format like PDF seems like a much better choice.
[Pandoc][pandoc] is the swiss-army knife of converting documents between various formats. While being able to deal with heavy-weight formats like docx and epub, we will need it for the more lightweight markdown. To be able to generate PDF files, we need LaTeX. On OSX, the s
public abstract class ButterKnifeViewHolder(val itemView : View) {} | |
public fun <T : View> ButterKnifeViewHolder.bindView(id: Int): ReadOnlyProperty<Any, T> = ViewBinding(id) | |
public fun <T : View> ButterKnifeViewHolder.bindOptionalView(id: Int): ReadOnlyProperty<Any, T?> = OptionalViewBinding(id) | |
public fun <T : View> ButterKnifeViewHolder.bindViews(vararg ids: Int): ReadOnlyProperty<Any, List<T>> = ViewListBinding(ids) | |
public fun <T : View> ButterKnifeViewHolder.bindOptionalViews(vararg ids: Int): ReadOnlyProperty<Any, List<T>> = OptionalViewListBinding(ids) |
package co.uk.myapp.beachroidtest; | |
import android.app.Fragment; | |
import android.app.Instrumentation; | |
import android.test.ActivityInstrumentationTestCase2; | |
import android.test.TouchUtils; | |
import android.test.ViewAsserts; | |
import android.view.View; | |
public class MainActivityTest extends ActivityInstrumentationTestCase2<MainActivity> { |