Skip to content

Instantly share code, notes, and snippets.

View vontell's full-sized avatar
🏙️
Philadelphia

Aaron Vontell vontell

🏙️
Philadelphia
View GitHub Profile
@pirate
pirate / carbonify.js
Last active January 22, 2020 16:52
Read a block of code from stdin, submit it to carbon.sh, and output the resulting tweet url.
#!/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
*/
@yoshuawuyts
yoshuawuyts / circle.yml
Created September 1, 2015 01:55
Circle CI setup postgresql, sets custom user and creates db
machine:
node:
version: 0.12.6
services:
- postgresql
database:
override:
- createuser -s -d dlivr
- createdb dlivr
@JMPergar
JMPergar / ScrollViewWithMaxHeight.java
Created November 5, 2014 13:28
ScrollView that can be configured with max height
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);
}
@MarsVard
MarsVard / README
Last active November 3, 2022 19:19
android drawable to imitate google cards.
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"
@amitchhajer
amitchhajer / Count Code lines
Created January 5, 2013 11:08
Count number of code lines in git repository per user
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 22, 2024 04:43
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname