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
# | |
# Append in .bashrc | |
# | |
# pulldb <app package> <database name> | |
# | |
function pulldb { | |
/home/geovani/android-sdk/platform-tools/adb -d shell "run-as $1 cat /data/data/$1/databases/$2 > /sdcard/$2" | |
/home/geovani/android-sdk/platform-tools/adb pull "/sdcard/$2" | |
} |
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 ... | |
import ... | |
/** | |
* Created by Geovani on 09/05/2014. | |
*/ | |
public class M00_Setup implements Migration { | |
@Override |
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
// (AndroidAnnotations) | |
@EViewGroup(R.layout.view_foo) | |
class Foo extends LinearLayout implements PresentationModel<Bar> { | |
Bar model; | |
Listener listener; | |
// (Saripaar) | |
Validator validator; | |
// (AndroidAnnotations) + (Saripaar) | |
@ViewById @Required TextView foo_tv_goo; |
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 | |
# Bash Script to integrate Virtualbox into Unity Launch bar. | |
# Creator: Daniel Scholtus | |
# Contributor: David Beitey | |
# Version: 1.1 | |
# Date: 2012-07-05 | |
#Determine which is installed, virtualbox or virtualbox-ose | |
#Given the packages are mutually exclusive, only one exists at any one time | |
if [ `type -P virtualbox` ]; then |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# pylint: disable=C0325,W0141 | |
# | |
# Para executar o script pelo terminal, execute: | |
# | |
# $ chmod 755 cimp.py | |
# $ mkdir -p ~/.local/bin && cd $_ | |
# $ ln -s <path to cimp.py> cimp | |
# |
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
# | |
# Send push notifications from shell, like this: | |
# | |
# $ push Your message here | |
# $ echo 'Lorem ipsum or another awesome command' | push | |
# $ docker pull image/tag && push 'Image image/tag download done' | |
# | |
# Append the following lines in your ~/.bashrc and set your PUSHBULLET_APIKEY | |
# To update current bash session, run | |
# $ . ~/.bashrc |
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
// Rules | |
.shadow(@parent, @sel, @ruleset) { | |
@rule: ~"@{parent}::shadow @{sel}"; | |
@{rule} { | |
@ruleset(); | |
} | |
} |
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
angular.module('app') | |
.config(configFn) | |
.factory('AuthInterceptor', AuthInterceptor); | |
/* @ngInject */ | |
function configFn($httpProvider) { | |
$httpProvider.interceptors.push('AuthInterceptor'); | |
} | |
/* @ngInject */ |
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
angular.module('myApp') | |
.directive('orderRequirement', orderRequirement); | |
/* @ngInject */ | |
function orderRequirement() { | |
var directive = { | |
restrict: 'EA', // Restrict to [E]lement or [A]ttribute | |
templateUrl: 'partials/requirements-order-requirement.html', // HTML template | |
scope: { // Isolated scope, defining the tag attributes that binds to scope variables | |
orders: '=', |
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
angular.module('myApp') | |
.factory('ApiClient', ApiClient) | |
.factory('IndividualResource', IndividualResource) | |
.directive('evolutionGraph', evolutionGraph); | |
/* @ngInject */ | |
function ApiClient($http) { // Used to pipe request to Api host, shared with other angular services | |
var service = { | |
get: getFn, | |
}, |