Record a video of your app
Developer options -> Check show touches
adb shell screenrecord /sdcard/video.mp4
adb pull /sdcard/video.mp4
fun main(args: Array<String>) { | |
// when statement | |
val firstName = "Dan" | |
val job = when (firstName) { | |
"Dan", "Jay", "Philip" -> "programmer" | |
"Jamie" -> "designer" | |
else -> "boss" | |
} | |
println("$firstName is a $job") |
# Howebrew package manager for OS X is useful for installing unix terminal tools. | |
# Install Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" | |
# Install wget | |
brew install wget | |
brew install openssl | |
# Update homebrew and all your packages |
# header | |
#!/usr/bin/env ruby | |
# require gem libraries | |
require 'rubygems' | |
require 'fileutils' | |
# get the current directory | |
dir = File.expand_path(File.dirname(__FILE__)) |
# Update your RVM to the latest statble version. | |
rvm get latest | |
# Update your RVM to the most recent version. (most bug fixes) | |
rvm get head | |
# Reinstall all your Rails gemset gems | |
rvm gemset empty project_gem_set && gem install bundler && bundle install | |
# How to fix Mac issue: `require': no such file to load -- iconv |