This file contains hidden or 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
<link rel="import" href="../polymer/polymer.html"> | |
<link rel="import" href="chart-js-import.html"> | |
<link rel="import" href="dataset-properties-behavior.html"> | |
<link rel="import" href="context-behavior.html"> | |
<link rel="import" href="resize-behavior.html"> | |
<link rel="import" href="chart-styles.html"> | |
<dom-module id="chart-bar"> | |
<template> |
This file contains hidden or 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
. | |
├── app | |
│ ├── my-chart.html | |
│ └── polymer-app.html | |
| | |
└── FrontEnd | |
└── bower_components | |
├── chart-elements | |
├── Chart.js | |
├── polymer |
This file contains hidden or 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
import android.util.Log; | |
/** | |
* Android Logger Util: | |
* Handles making nice pretty debug statements. | |
*/ | |
public class Logger { | |
private final String TAG; | |
private final Boolean DEBUG = true; //TODO get this from BuildConfig | |
private final Boolean WARN = true; //TODO get this from BuildConfig |
This file contains hidden or 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.frontrangrider; | |
import android.util.SparseArray; | |
import java.util.EnumSet; | |
import java.util.HashMap; | |
import java.util.Map; | |
public enum KeyValueEnum { | |
FIRST(1, "FIRST"), |
This file contains hidden or 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.frontrangerider.SubProcess; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.widget.Toast; | |
import com.frontrangerider.intents.MyIntentActions; | |
import com.frontrangerider.intents.MyIntentExtras; | |
import com.frontrangerider.util.Logger; |
This file contains hidden or 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
#!/bin/bash | |
#################################################################### | |
# Bash Script Template | |
# Extend this template to produce a custom bash script that can | |
# only be run as root, makes temp dirs, and handles ungraceful | |
# exits by using trap. The script also demonstrates how to accept | |
# command line arguments. | |
# NOTE: The run-as-root requirement can easily be removed. | |
#################################################################### |
This file contains hidden or 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
############################################################################### | |
# generateOutputFilename | |
# | |
# Get a unique timestamped filename with the date, git hash, and branch to | |
# patch. The stanza is <userPrefix>-date-hash-for-<branch>.patch | |
# | |
# NOTE: Date formate is ddmmyy_hhmmss in 24hr format | |
# NOTE: Git hash is the last 7 chars | |
############################################################################### | |
function generateOutputFilename { |
This file contains hidden or 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
SCRIPT_NAME="$(basename -- "$0")" | |
ABS_SCRIPT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
#################################################################### | |
# setAbsolutePathofDirectory | |
# | |
# PARAMS: directory, String | |
# cd's into the directory and prints the dir name, then cd's back. | |
#################################################################### | |
function setAbsolutePathofDirectory { |
This file contains hidden or 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
/** | |
Android service skeleton that performs intensive off main thread database operations. | |
This example uses a HandlerThread which will queue up requests rather than parallelize | |
them, which is good for database operations. | |
*/ | |
public class MyDatabaseService extends Service { | |
private HandlerThread databaseThread; | |
private Handler databaseHandler; | |
private MyDatabaseHelper dbHelper; |
This file contains hidden or 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
#!/bin/bash | |
####################################################################### | |
# Examples of using the find commands | |
####################################################################### | |
# This is an unsafe and bad way to loop over output of find commands | |
# One should use the while read loop to avoid potential errors with the output | |
# of the find command. See below: | |
for file in $(find . -maxdepth 1 -type d -path Projects -prune -o -print); | |
do |
OlderNewer