Example
There is no support for horizontal fill, just vertical.
public class ImageViewWithFill extends ImageView {
private final int fillColor = 0xff66ffcc; // fill color
import com.google.code.linkedinapi.client.LinkedInApiClient; | |
import com.google.code.linkedinapi.client.LinkedInApiClientFactory; | |
import com.google.code.linkedinapi.client.enumeration.ProfileField; | |
import com.google.code.linkedinapi.client.oauth.LinkedInAccessToken; | |
import com.google.code.linkedinapi.client.oauth.LinkedInOAuthService; | |
import com.google.code.linkedinapi.client.oauth.LinkedInRequestToken; | |
import com.google.code.linkedinapi.schema.Person; | |
/* DON'T FORGET TO PUT THIS ON YOUR MANIFEST: | |
<activity |
// We need to use reflection... | |
// yes, I know, it sucks! | |
@Override | |
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { | |
super.onCreateOptionsMenu(menu, inflater); | |
inflater.inflate(R.menu.menu_with_search, menu); | |
SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView(); | |
final EditText editTextView = (EditText) searchView.findViewById(android.support.v7.appcompat.R.id.search_src_text); |
/** | |
* Driver extracted from http://www.diku.dk/~panic/P-touch/. | |
* Modified by Mauricio Giordano <[email protected]> | |
*/ | |
/** | |
* rastertoptch is a filter to convert CUPS raster data into a Brother | |
* P-touch label printer command byte stream. | |
* | |
* Copyright (c) 2006 Arne John Glenstrup <[email protected]> |
package you.pkg.here; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.app.FragmentManager; | |
/* | |
* Copyright (C) 2018 InEvent, Inc. MIT License | |
*/ | |
public class FragmentManagerHelper { |
git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all |
#!/usr/bin/env bash | |
# reset environment variables that could interfere with normal usage | |
export GREP_OPTIONS= | |
# put all utility functions here | |
# make a temporary file | |
git_extra_mktemp() { | |
mktemp -t "$(basename "$0")".XXX | |
} |
#!/bin/bash | |
branch="$(git rev-parse --abbrev-ref HEAD)" | |
git pull origin $branch |
# -*- coding: utf-8 -*- | |
from feedgen.feed import FeedGenerator | |
from boto.s3.connection import OrdinaryCallingFormat | |
from boto.s3.key import Key | |
from boto.cloudfront import CloudFrontConnection | |
from os import path | |
import boto | |
import boto.s3 | |
import sys |
/* global chrome, MediaRecorder, FileReader */ | |
chrome.runtime.onConnect.addListener(port => { | |
let recorder = null | |
port.onMessage.addListener(msg => { | |
console.log(msg); | |
switch (msg.type) { | |
case 'REC_STOP': | |
console.log('Stopping recording') | |
if (!port.recorderPlaying || !recorder) { |