Skip to content

Instantly share code, notes, and snippets.

View edgarmiro's full-sized avatar

Edgar Miró edgarmiro

View GitHub Profile
@edgarmiro
edgarmiro / sublime-command-line.md
Created April 30, 2018 10:13
Launch Sublime Text from the command line on OSX

Launch Sublime Text from the command line on OSX

Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.

Requirements

  • Sublime text 2 or 3 installed in your system within Applications folder

Setup

@edgarmiro
edgarmiro / README.md
Created April 30, 2018 07:47 — forked from gabrielemariotti/README.md
How to manage the support libraries in a multi-module projects. Thanks to Fernando Cejas (http://fernandocejas.com/)

Centralize the support libraries dependencies in gradle

Working with multi-modules project, it is very useful to centralize the dependencies, especially the support libraries.

A very good way is to separate gradle build files, defining something like:

root
  --gradleScript
 ----dependencies.gradle
@edgarmiro
edgarmiro / CircleTransform.java
Last active April 10, 2018 11:34 — forked from julianshen/CircleTransform.java
CircleTransform for Picasso
/*
* Copyright 2018 Edgar Miró
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@edgarmiro
edgarmiro / gist:c811d849f6fdf1dcde1e
Created March 18, 2015 11:23
Comprobar versión de Ubuntu
lsb_release -a
@edgarmiro
edgarmiro / gist:e4c236a6407e1d7e4e2f
Created March 16, 2015 11:23
Comprobar velocidad disco duro
sudo hdparm -tT /dev/sda
@edgarmiro
edgarmiro / gist:b750940ddaefc97c959a
Created March 16, 2015 09:22
Borrar archivos por extensión
find . -type f -name "*.txt" -delete
@edgarmiro
edgarmiro / gist:6554fe1b4d8070eef6f2
Last active February 9, 2017 18:38
Buscar archivos por extensión
find . -regex ".*\.\(rar\|zip\)"