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
POWERLEVEL9K_MODE='nerdfont-complete' | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon dir vcs) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator time) | |
POWERLEVEL9K_OS_ICON_BACKGROUND="white" | |
POWERLEVEL9K_OS_ICON_FOREGROUND="blue" | |
POWERLEVEL9K_DIR_HOME_FOREGROUND="white" | |
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="white" | |
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="white" | |
POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true |
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
float bezier(float t, float p0_x, float p0_y, float p1_x, float p1_y, float p2_x, float p2_y, | |
float p3_x, float p3_y) { | |
float c_x = 3 * (p1_x - p0_x); | |
float b_x = 3 * (p2_x - p1_x) - c_x; | |
float a_x = p3_x - p0_x - c_x - b_x; | |
float c_y = 3 * (p1_y - p0_y); | |
float b_y = 3 * (p2_y - p1_y) - c_y; | |
float a_y = p3_y - p0_y - c_y - b_y; |
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
#!/bin/bash | |
ADDI_CFLAGS="-marm" | |
API=16 | |
PLATFORM=arm-linux-androideabi | |
CPU=armv7-a | |
NDK=/Users/lecion/Dev/Android/android-ndk-r13b | |
SYSROOT=$NDK/platforms/android-$API/arch-arm/ | |
ISYSROOT=$NDK/sysroot | |
ASM=$ISYSROOT/usr/include/$PLATFORM | |
TOOLCHAIN=$NDK/toolchains/$PLATFORM-4.9/prebuilt/darwin-x86_64 |
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
#!/bin/bash | |
ADDI_CFLAGS="-marm" | |
ADDI_LDFLAGS="" | |
API=18 | |
PLATFORM=arm-linux-androideabi | |
CPU=armv7-a | |
NDK=/Users/lecion/Dev/Android/android-ndk-r13b | |
SYSROOT=$NDK/platforms/android-$API/arch-arm/ | |
ISYSROOT=$NDK/sysroot | |
ASM=$ISYSROOT/usr/include/$PLATFORM |
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
# SLIBNAME_WITH_VERSION='$(SLIBNAME).$(LIBVERSION)' | |
# SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)' | |
# LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"' | |
# SLIB_INSTALL_NAME='$(SLIBNAME_WITH_VERSION)' | |
# SLIB_INSTALL_LINKS='$(SLIBNAME_WITH_MAJOR) $(SLIBNAME)' | |
SLIBNAME_WITH_VERSION='$(SLIBNAME).$(LIBVERSION)' | |
SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)' | |
LIB_INSTALL_EXTRA_CMD='$$(RANLIB)"$(LIBDIR)/$(LIBNAME)"' | |
SLIB_INSTALL_NAME='$(SLIBNAME_WITH_MAJOR)' | |
SLIB_INSTALL_LINKS='$(SLIBNAME)' |
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
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
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
apply plugin: 'com.android.library' | |
apply plugin: 'com.github.dcendents.android-maven' | |
apply plugin: 'com.jfrog.bintray' | |
version = "0.1.1" | |
android { | |
compileSdkVersion 23 | |
buildToolsVersion "23.0.0" |
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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- google's material design colours from | |
http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
<!--reds--> | |
<color name="md_red_50">#FFEBEE</color> | |
<color name="md_red_100">#FFCDD2</color> | |
<color name="md_red_200">#EF9A9A</color> |
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
<?xml version="1.0"?> | |
<root> | |
<devicevendordef> | |
<vendorname>LEOPOLD_66</vendorname> | |
<vendorid>0x04d9</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>LEOPOLD_FC660M</productname> | |
<productid>0xa097</productid> |
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.yliec.lbs.util; | |
import android.app.Activity; | |
import android.app.Service; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Point; | |
import android.graphics.Rect; |
NewerOlder