Skip to content

Instantly share code, notes, and snippets.

View miquelbeltran's full-sized avatar

Miguel Beltran miquelbeltran

View GitHub Profile
#!/bin/bash
NDK_ROOT=$NDK_HOME
NDK_MAKE=$NDK_ROOT/prebuilt/windows-x86_64/bin/make.exe
$NDK_ROOT/prebuilt/windows-x86_64/bin/make.exe -f $NDK_ROOT/build/core/build-local.mk SHELL=cmd $@
#!/bin/bash
# Reset
Color_Off="\[\033[0m\]" # Text Reset
# Regular Colors
Black="\[\033[0;30m\]" # Black
Red="\[\033[0;31m\]" # Red
Green="\[\033[0;32m\]" # Green
@miquelbeltran
miquelbeltran / album_downloader.py
Created October 9, 2012 14:21
Download all pictures from your facebook albums in subfolders
#Download all pictures from your facebook albums in subfolders
#uses https://github.com/pythonforfacebook/facebook-sdk
import facebook
import os
def download(url, folder):
"""Copy the contents of a file from a given URL
to a local file.
"""
@miquelbeltran
miquelbeltran / gist:3859125
Created October 9, 2012 14:20
Ubuntu installed software for development

Ubuntu installed software for development

Installed tools

  • sublime-text
  • Eclipse Classic
  • ADT + NDK + Android source code
  • Keepass
  • Filezilla
  • Skype
@miquelbeltran
miquelbeltran / .bash_aliases
Created October 10, 2012 09:26
Current .bash_aliases
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@miquelbeltran
miquelbeltran / .travis.yml
Last active January 13, 2016 10:16
Android Travis-ci example
language: android
android:
components:
- platform-tools
- build-tools-23.0.1
- android-23
- extra-android-m2repository
script:
- ./gradlew build
before_install:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.1'
}
}
apply plugin: 'com.android.application'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.1'
}
}
apply plugin: 'com.android.application'
apply plugin: 'java'
def contentSpec = copySpec {
//exclude 'nocopy.txt', 'nocopy_too.txt'
exclude {it.file.name.startsWith('nocopy')}
from 'src'
}
task copyImages (type: Copy) {
// Parameters can be imported from a variable
with contentSpec
into 'dest'