This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set hivevar:start_date=0000-01-01; | |
set hivevar:days=1000000; | |
set hivevar:table_name=[INSERT YOUR TABLE NAME HERE]; | |
-- If you are running a version of HIVE prior to 1.2, comment out all uses of date_format() and uncomment the lines below for equivalent functionality | |
CREATE TABLE IF NOT EXISTS ${table_name} AS | |
WITH dates AS ( | |
SELECT date_add("${start_date}", a.pos) as date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.util.shadow; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Rect; | |
import android.graphics.drawable.GradientDrawable; | |
import android.view.View; | |
import static android.graphics.drawable.GradientDrawable.Orientation.LEFT_RIGHT; | |
import static android.graphics.drawable.GradientDrawable.Orientation.TOP_BOTTOM; |