This file contains hidden or 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
| image: ruby:2.5.1 | |
| stages: | |
| - deploy | |
| deploy_staging: | |
| stage: deploy | |
| script: | |
| - which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y ) | |
| - eval $(ssh-agent -s) |
This file contains hidden or 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
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
| # Make sure you have a recent version: the code points that Powerline |
This file contains hidden or 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
| def index | |
| @query = params[:query] | |
| @dealers = Dealer.all.eager_load(:angler_applications) | |
| @dealers = @dealers.by_name(@query) if [email protected]? | |
| @dealers = @dealers.page(params[:page]).per(10) | |
| respond_to do |format| | |
| format.html | |
| format.js | |
| end |
This file contains hidden or 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
| .row-actions.dont-propagate.btn-toolbar.pull-right | |
| - except = Array(except) | |
| - resources = [:panel].concat(Array(resource)).flatten | |
| - resource = resources.last | |
| - paths = paths || {} | |
| = yield | |
| - unless except.include? :show | |
| = link_to (paths[:show] || polymorphic_path(resources)), rel: "tooltip", title: "Ver detalles", class: 'btn btn-sm btn-info' do |
This file contains hidden or 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
| #if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end | |
| import org.greenrobot.eventbus.Subscribe; | |
| import retrofit2.Response; | |
| #parse("File Header.java") | |
| public class ${NAME} extends NetworkExchanger<${RESPONSE_MODEL}> { | |
| @Subscribe |
This file contains hidden or 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
| public class ScreenLock { | |
| public static class Orientation { | |
| public static final int LANDSCAPE = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; | |
| public static final int PORTRAIT = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; | |
| public static final int REVERSE_LANDSCAPE = ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE; | |
| public static final int REVERSE_PORTRAIT = ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT; | |
| public static final int UNSPECIFIED = ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED; | |
| } |
This file contains hidden or 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
| public class VersionApp { | |
| private int versionMinima; | |
| private int versionActual; | |
| public int getVersionMinima() { | |
| return versionMinima; | |
| } | |
| public void setVersionMinima(int versionMinima) { | |
| this.versionMinima = versionMinima; |
This file contains hidden or 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
| public class AnnotationExclusionStrategy implements ExclusionStrategy { | |
| @Override | |
| public boolean shouldSkipField(FieldAttributes f) { | |
| return f.getAnnotation(Exclude.class) != null; | |
| } | |
| @Override | |
| public boolean shouldSkipClass(Class<?> clazz) { | |
| return false; |
This file contains hidden or 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
| public abstract class BaseActivity extends AppCompatActivity { | |
| public static final int CLEAR_STACK = 1; | |
| private ViewGroup overlayContainerView; | |
| /** | |
| * Si autoRegisterBus es falso la activity no sera registrada del bus automaticamente | |
| */ | |
| private boolean autoRegisterBus = true; | |
| @Override | |
| protected void onResume() { |
This file contains hidden or 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
| /** | |
| * Esta clase da soporte a eventos de click en recycler views | |
| */ | |
| public class ItemClickSupport { | |
| private final RecyclerView mRecyclerView; | |
| private OnItemClickListener mOnItemClickListener; | |
| private OnItemLongClickListener mOnItemLongClickListener; | |
| private View.OnClickListener mOnClickListener = new View.OnClickListener() { | |
| @Override |
NewerOlder