start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env node | |
/* | |
Submit code from stdin to carbon.now.sh and return a url to a new tweet containing a screenshot | |
carbon.now.sh authors: https://dawnlabs.io/ | |
carbonify author: Nick Sweeting <git@nicksweeting.com> | |
MIT License 2017 | |
*/ |
machine: | |
node: | |
version: 0.12.6 | |
services: | |
- postgresql | |
database: | |
override: | |
- createuser -s -d dlivr | |
- createdb dlivr |
public class ScrollViewWithMaxHeight extends ScrollView { | |
public static int WITHOUT_MAX_HEIGHT_VALUE = -1; | |
private int maxHeight = WITHOUT_MAX_HEIGHT_VALUE; | |
public ScrollViewWithMaxHeight(Context context) { | |
super(context); | |
} |
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" |
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n |