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
sudo apt-get remove --purge mysql* -y | |
dpkg -l | grep mysql | |
sudo apt-get remove --purge mysql-apt-config -y | |
sudo rm -rf /etc/mysql /var/lib/mysql | |
sudo apt-get autoremove -y | |
sudo apt-get autoclean -y | |
wget http://repo.mysql.com/mysql-apt-config_0.8.15-1_all.deb | |
sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb |
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
Mis bombillas actuales son de 46 watios, las de Xiaomi consumen 9W a máxima potencia, las de Hue son 10W. El precio que tengo en la última factura es 0.12€/kWh Saquen sus conclusiones | |
Por Víctor González FuenteSe dice Kilowatio-Hora, no por hora. no es lo mismo kWh que kW/h. Si así fuera, quedaría el precio de tu factura en €h^2, lo cual no entiendo muy bien qué quiere decir xD | |
Watio se pronuncia vatio, y kiwi se pronuncia Kigüi, no digáis kivi, hombre, suena fatal.Evidentemente, los resultados son en euros, no van a ser limones, pero por legibilidad, lo dejo así. El primer número es el valor mensual, el segundo el anual. Y si no enciendes tus bombillas en todo el año, pues te has dejado un dineral y no has ahorrado nada | |
Para 1 bombilla | |
1 horas: | |
Ahora: 0.166, 1.992 |
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
token = "asdfghjklqwertyuiopzxcvbnm" | |
client = ZendeskAPI::Client.new do |config| | |
config.url = "https://foobar.zendesk.com/api/v2" | |
config.retry = true | |
require 'logger' | |
config.logger = Logger.new(STDOUT) | |
config.username = "foo.bar@gmail.com" | |
config.token = token | |
end |
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
def allpairs(num) | |
num.to_s.chars.all?{|c| c.to_i%2==0} | |
end | |
def first_and_last_equals(num) | |
chars=num.to_s.chars | |
chars[0] == chars[-1] | |
end |
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
# OSX files | |
.DS_Store | |
# Ignore gradle files | |
.gradle | |
.gradletasknamecache | |
# generated files | |
bin/ |
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
import org.junit.runners.model.InitializationError; | |
import org.robolectric.RobolectricGradleTestRunner; | |
import org.robolectric.annotation.Config; | |
import org.robolectric.manifest.AndroidManifest; | |
public class CustomRobolectricGradleTestRunner extends RobolectricGradleTestRunner | |
{ | |
private static final String PACKAGE_NAME=""; | |
public CustomRobolectricGradleTestRunner(Class<?> klass) throws InitializationError { | |
super(klass); |
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
HandlerThread thread=new HandlerThread("name"); | |
thread.start(); | |
Handler handler=new Handler(thread.getLooper()); | |
handler.post(...); |
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
Aplicacion para crear diagramas | |
https://app.genmymodel.com/welcome |