Skip to content

Instantly share code, notes, and snippets.

View vishna's full-sized avatar

Łukasz Wiśniewski vishna

View GitHub Profile
@vishna
vishna / OutsetDrawable.java
Last active July 3, 2019 11:33
Adds margins to your drawables. Based on InsetDrawable which adds padding.
package com.eyeem.widgets;
/*
* Copyright (C) 2008 The Android Open Source Project
* Copyright (C) 2014 EyeEm Mobile GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@vishna
vishna / push-n-pull
Created November 9, 2012 12:15
push & pull
#!/usr/bin/env ruby
BRANCH = `git rev-parse --abbrev-ref HEAD`
MESSAGE = ARGV[0]
REMOTE = "vishna"
_REMOTE = "eyeem"
_BRANCH = "3.4_maintenance"
`git push #{REMOTE} #{BRANCH}`
`hub pull-request \"#{MESSAGE}\" -b #{_REMOTE}:#{_BRANCH} -h #{REMOTE}:#{BRANCH}`