TweetWorld
An application used to filter data form Twitter based on user preference, built with React, Redux, JavaScript, and CSS.
(only necessary if incomplete)
| # extract the android package id from a built apk file | |
| # usage ./getPackageName.sh <path-to-apk> | |
| line=`aapt dump badging "$1" | grep package:\ name` | |
| # above returns: | |
| # package: name='com.calvium.myapp' versionCode='1' versionName='1.0' | |
| if [[ $line =~ name=\'(.+)\'\ versionCode ]]; then | |
| echo ${BASH_REMATCH[1]} | |
| else | |
| echo "Failed to find package name" |
| #! /bin/bash | |
| #===================================================================== | |
| # Selects an android device | |
| # Copyright (C) 2012-2013 Diego Torres Milano. All rights reserved. | |
| # | |
| # See: | |
| # - http://dtmilano.blogspot.ca/2013/01/android-select-device.html | |
| # - http://dtmilano.blogspot.ca/2012/03/selecting-adb-device.html | |
| # for details on usage. | |
| #===================================================================== |
| /** | |
| Get local html files (views/widgets) to insert into your SPA | |
| @param path ex: | |
| path = 'file:///android_asset/www/view/page.html' | |
| @param success | |
| @param failure | |
| */ | |
| function get_html_file(path, success, failure) { | |
| const xhr = new XMLHttpRequest() |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Canvas; | |
| import android.graphics.Color; | |
| import android.graphics.DashPathEffect; | |
| import android.graphics.Paint; | |
| import android.graphics.Path; | |
| import android.util.AttributeSet; | |
| import android.util.DisplayMetrics; | |
| import android.util.TypedValue; |
| public void createExpandableSectionsDatabaseTest(int size) { | |
| databaseType = DatabaseType.EXPANDABLE_SECTIONS; | |
| mItems.clear(); | |
| for (int i = 0; i < size; i++) { | |
| mItems.add(newExpandableSectionItemTest(i + 1));//With expansion level 0 | |
| } | |
| } | |
| public static ExpandableHeaderItemTest newExpandableSectionItemTest(int i) { |
| @echo off | |
| :: Initilisation of Variables.. Put your defualts in here | |
| :: Change enableSetVariablesWarning to anything else to | |
| :: disable warning | |
| set defaultIp="192.168.10.104" | |
| set adbLoc="D:\Android_sdk\sdk\platform-tools" | |
| set enableSetVariablesWarning="true" | |
| set askForIP="false" |
| </b>mac-android && ios</b> | |
| watchman watch-del-all && rm yarn.lock && rm -rf node_modules && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-map-* && yarn |
| class LongToastMessageShower implements MessageShower{ | |
| private Toast toast; | |
| public LongToastMessageShower(Context appContext){ | |
| this.toast = Toast.makeText(appContext,"",Toast.LENGTH_LONG); | |
| } | |
| @Override | |
| public void showMessage(String message){ | |
| toast.cancel(); |
| package com.entriver.fieldpro.utils; | |
| /** | |
| * Created by fieldPro on 9/3/2018. | |
| */ | |
| import android.content.Context; | |
| import android.graphics.Canvas; | |
| import android.graphics.Paint; | |
| import android.graphics.RectF; | |
| import android.os.Build; |