| # encoding: utf-8 | |
| class PictureUploader < CarrierWave::Uploader::Base | |
| UPLOADER_IMAGE_VERSION_NAMES = %w( 320x240 480x320 640 800 ) | |
| # Include RMagick or MiniMagick support: | |
| # include CarrierWave::RMagick | |
| # include CarrierWave::MiniMagick | |
| # Choose what kind of storage to use for this uploader: |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| 1Password: Password Manager and Secure Wallet https://agilebits.com/onepassword | |
| Adblock Plus https://chrome.google.com/webstore/detail/cfhdojbkjhnklbpkdaibdccddilifddb | |
| Alisec Extension https://chrome.google.com/webstore/detail/lapoiohkeidniicbalnfmakkbnpejgbi | |
| AngularJS Batarang https://chrome.google.com/webstore/detail/ighdmehidhipcmcojjgiloacoafjmpfk | |
| Awesome Screenshot: Capture & Annotate https://chrome.google.com/webstore/detail/alelhddbbhepgpmgidjdcjakblofbmce |
| --- | |
| - hosts: web:&{{ env }} | |
| tasks: | |
| - name: Test that git ssh connection is working. | |
| command: ssh -T git@github.com | |
Instructor Notes
Before completing the quiz above, make sure you have added the necessary code to configure periodic syncs.
The code in this video will create the logic to, when you start Sunshine, check if an account has been created for Sunshine and if not, create a new account and configure a periodic sync to start.
Instructions
FetchWeatherTask and the SunshineService are now just older, unused classes which do the same thing that the SunshineSyncAdapter class is doing now; remove them. Clean up the AndroidManifest.xml and remove SunshineService and the AlarmReciever from the xml.
#Intro
Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3
Kotlin project website is at kotlin.jetbrains.org.
All the codes here can be copied and run on Kotlin online editor.
Let's get started.
This is a quick guide to Kotlin programming language. The previous part of this guide is here
#Object Oriented
fun main(args : Array<String>) {
class local (val x : Int)
val y = local(10)
println("${y.x}")| root = true | |
| [*] | |
| insert_final_newline = true | |
| charset = utf-8 | |
| trim_trailing_whitespace = true | |
| end_of_line = lf | |
| [*.{js,json}] | |
| indent_style = space |