The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
package me.angrybyte.coloringdemo; | |
import static android.graphics.PorterDuff.Mode.SRC_ATOP; | |
import android.annotation.SuppressLint; | |
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.content.res.ColorStateList; | |
import android.graphics.Bitmap; |
#! /usr/bin/env python | |
# coding: utf-8 | |
"""This script reads all .java and .kt files from a directory tree and determines if | |
it's necessary to write a Copyright Notice in the beginning of each Java file. | |
It checks that by searching for the word "copyright" in the first few lines. | |
Warning: use it at your own risk. Better have a source control to rollback if | |
necessary. | |
""" |
package com.bizzby.utils; | |
import android.util.Log; | |
import java.io.PrintWriter; | |
import java.io.StringWriter; | |
public class QLog | |
{ |
public class Repository extends SQLiteOpenHelper { | |
private static final int VERSION = 1; | |
private static final String DATABASE_NAME = "data.sqlite"; | |
private static File DATABASE_FILE; | |
// This is an indicator if we need to copy the | |
// database file. | |
private boolean mInvalidDatabaseFile = false; | |
private boolean mIsUpgraded = false; | |
private Context mContext; |