Skip to content

Instantly share code, notes, and snippets.

View AndyScherzinger's full-sized avatar
👨‍💻

Andy Scherzinger AndyScherzinger

👨‍💻
View GitHub Profile
@AndyScherzinger
AndyScherzinger / styles.xml
Created July 11, 2017 15:48 — forked from Aracem/styles.xml
Material Text Styles supported for all version with Appcompat + Calligraphy Library ( https://github.com/chrisjenx/Calligraphy ) Material Design recomendations http://www.google.com/design/spec/style/typography.html#typography-roboto-noto Remember to add the fonts to your source/fonts folder
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- TextView Empty Base-->
<style name="TextViewBase" parent="android:TextAppearance.Holo.Widget.TextView"/>
<!-- ActionBar Title -->
<style name="CustomActionBarTitleBase" parent="TextAppearance.AppCompat.Widget.ActionBar.Title"/>
<!-- Text Views Default Base -->
@AndyScherzinger
AndyScherzinger / RoundedBitmapDrawableUsage.java
Last active April 5, 2016 09:15 — forked from kaushikgopal/RoundedBitmapDrawableUsage.java
RoundedImageView - drop dead easy way to do this with RoundedBitmapDrawable
Bitmap batmapBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.batman);
RoundedBitmapDrawable circularBitmapDrawable = //
RoundedBitmapDrawableFactory.create(getResources(), batmapBitmap);
circularBitmapDrawable.setCornerRadius(batmapBitmap.getWidth());
myImageView.setImageDrawable(circularBitmapDrawable);
System.out.prinln("MyActivity", "That's all folks");
<?php
/*
Backup script for trakt.tv.
Live demo: http://eclectide.com/blog/2014/08/12/trakt-tv-backup/
*/
// You can find your personal api key under:
// https://trakt.tv/api-docs/authentication