The sources of the project follows this structure:
/src
/app
/{domain}
/actions.ts
/actions.spec.ts
| title | subtitle | author | date | source |
|---|---|---|---|---|
npm vs Yarn Command Translation Cheat Sheet |
CLI commands comparison |
yarn |
February 15, 2020 |
| /* | |
| Notice the @Transient annotation on the MultipartFile field. | |
| This means that the field value will NOT be persisted to the database. | |
| */ | |
| package com.teamtreehouse.giflib.model; | |
| import org.springframework.web.multipart.MultipartFile; | |
| import javax.persistence.*; |
| <?php | |
| if ( ! function_exists('ddd')) | |
| { | |
| /** | |
| * Dump the passed variables and end the script. | |
| * | |
| * @param mixed | |
| * @return void | |
| */ | |
| function ddd($v, $asString = false) |
Centralize the support libraries dependencies in gradle
Working with multi-modules project, it is very useful to centralize the dependencies, especially the support libraries.
A very good way is to separate gradle build files, defining something like:
root
--gradleScript
----dependencies.gradle
| public static Observable<List<String>> paginatedThings(final Observable<Void> onNextObservable) { | |
| return Observable.create(new Observable.OnSubscribe<List<String>>() { | |
| @Override | |
| public void call(final Subscriber<? super List<String>> subscriber) { | |
| onNextObservable.subscribe(new Observer<Void>() { | |
| int latestPage = -1; | |
| @Override | |
| public void onCompleted() { | |
| subscriber.onCompleted(); |
| @implementation UIImage (scale) | |
| /** | |
| * Scales an image to fit within a bounds with a size governed by | |
| * the passed size. Also keeps the aspect ratio. | |
| * | |
| * Switch MIN to MAX for aspect fill instead of fit. | |
| * | |
| * @param newSize the size of the bounds the image must fit within. | |
| * @return a new scaled image. |
| easterEgg.BadWorder.list={ | |
| "4r5e":1, | |
| "5h1t":1, | |
| "5hit":1, | |
| a55:1, | |
| anal:1, | |
| anus:1, | |
| ar5e:1, | |
| arrse:1, | |
| arse:1, |