Skip to content

Instantly share code, notes, and snippets.

View martyglaubitz's full-sized avatar

Marty Glaubitz martyglaubitz

View GitHub Profile
@martyglaubitz
martyglaubitz / DistributeLayout.java
Last active August 29, 2015 14:03
DistributingLayout
/* The MIT License (MIT)
Copyright (c) 2014, Marty Glaubitz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@martyglaubitz
martyglaubitz / ActionBarTabsAtopFix.java
Last active August 29, 2015 14:02
Fix: Android Actionbar Tabs appear over ActionBar
final View homeIcon = findViewById(android.R.id.home);
((View) homeIcon.getParent()).setVisibility(View.GONE);
@martyglaubitz
martyglaubitz / BorderDrawable.java
Last active August 29, 2015 14:02
A drawable which draws borders as background of a view
/* The MIT License (MIT)
Copyright (c) 2014, Marty Glaubitz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@martyglaubitz
martyglaubitz / CircleNetworkImageView.java
Last active January 8, 2016 11:59
Circle mask NetworkImageView for Volley
/* The MIT License (MIT)
Copyright (c) 2014, Marty Glaubitz
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@martyglaubitz
martyglaubitz / SP.ClientContext.prototype.loadAsync
Last active January 3, 2016 05:39
A leaner version of the "executeQueryAsync" method of the ClientContext class
/*
* USAGE
*
* var ctx = SP.ClientContext.get_current();
*
* var web = ctx.get_web();
* var groups = web.get_siteGroups();
*
* ctx.loadAsync([web, groups], function (err, clientObjects) {
* if (err) {