Skip to content

Instantly share code, notes, and snippets.

Avatar

machao foolhorse

View GitHub Profile
@foolhorse
foolhorse / .gitignore
Last active Jul 13, 2020
Android application gitignore
View .gitignore
# Latest version:
# https://gist.github.com/foolhorse/e7c51d1c33f09e5d82cd7f86f13d515d
# Mac system files
.DS_Store
# Linux system files
.directory
# svn files
@foolhorse
foolhorse / gradle-bintray-push.gradle
Last active Dec 1, 2018
maven install and push to bintray
View gradle-bintray-push.gradle
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
group = PROJECT_PACKAGE_NAME
version = PROJECT_VERSION_NAME
install {
repositories.mavenInstaller {
pom.groupId = PROJECT_PACKAGE_NAME
pom.artifactId = PROJECT_NAME
@foolhorse
foolhorse / adbwifi.sh
Created Oct 9, 2015 — forked from stormzhang/adbwifi.sh
shell script for adb wifi
View adbwifi.sh
#!/bin/bash
#Modify this with your IP range
MY_IP_RANGE="192\.168\.1"
#You usually wouldn't have to modify this
PORT_BASE=5555
#List the devices on the screen for your viewing pleasure
adb devices
@foolhorse
foolhorse / check_image_type.py
Created Sep 18, 2016
check image file type in current dir
View check_image_type.py
#!/usr/bin/env python2
#-*-encoding:utf-8-*-
import os,sys
import imghdr
list = os.listdir('.')
for file in list:
filepath = os.path.join('.',file)
if os.path.isdir(filepath):