Here's how you could create custom error classes in Node.js using latest ES6 / ES2015 syntax.
I've tried to make it as lean and unobtrusive as possible.
errors/AppError.js
| .PHONY: all | |
| all: | |
| mv matlab.png /usr/share/icons/hicolor/256x256/apps/ | |
| mv matlab.desktop /usr/share/applications/ | |
| echo alias matlab=\'matlab -nodisplay\' >> /etc/bash.bashrc | |
| update-menus |
| // Copyright 2012 Square, Inc. | |
| package com.squareup.widgets; | |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.util.AttributeSet; | |
| import android.widget.ImageView; | |
| /** Maintains an aspect ratio based on either width or height. Disabled by default. */ | |
| public class AspectRatioImageView extends ImageView { |
| put card.xml in your drawables directory, put colors.xml in your values directory or add the colors to your colors.xml file. | |
| set the background of a view to card, | |
| as you can see in card.xml the drawable handles the card margin, so you don't have to add a margin to your view | |
| ``` xml | |
| <View | |
| android:layout_width="fill_parent" |
rebase vs merge).rebase vs merge)reset vs checkout vs revert)git rev-parse)pull vs fetch)stash vs branch)reset vs checkout vs revert)