Skip to content

Instantly share code, notes, and snippets.

View rashiq's full-sized avatar
☃️
hi

Rashiq rashiq

☃️
hi
View GitHub Profile
@rashiq
rashiq / FontSetter.java
Last active August 29, 2015 13:56
Set a custom Font to ActionBar Tabs.
ViewParent root = findViewById(android.R.id.content).getParent();
setCustomFontToActionBarTab(root);
@rashiq
rashiq / WebDialog.java
Last active December 18, 2015 23:38
Use this theme to "holofy" the WebDialog in the Facebook SDK
/* Change this line inside the WebDialog.java class:
https://github.com/facebook/facebook-android-sdk/blob/master/facebook/src/com/facebook/widget/WebDialog.java#L60
to the code block below.
*/
public static final int DEFAULT_THEME;
static {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
DEFAULT_THEME = R.style.FbDialog;
#!flask/bin/python
from flask import Flask, jsonify, abort, request, make_response, url_for
from flask.ext.httpauth import HTTPBasicAuth
app = Flask(__name__, static_url_path = "")
auth = HTTPBasicAuth()
@auth.get_password
def get_password(username):
if username == 'miguel':