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
var imagenes = [ | |
"Ana.jpg", "Analy.jpg", | |
"Areli.jpg", "Beatriz.jpg", | |
"Cecilia.jpg", "Claudia.jpg", | |
"Daniela.jpg", "Elisa.jpg", | |
"Evelyn.jpg", "Gabriela.jpg", | |
"Grissel.jpg", "Guadalupe.jpg", | |
"Johana.jpg", "Joyce.jpg", | |
"Ofelia.jpg", "Patricia.jpg", | |
"Sharon.jpg", "Heredia.jpg", |
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
var hacerSopa = function() { | |
return 'Hacer sopa'; | |
}; | |
var hacerTacos = function() { | |
return 'Hacer tacos'; | |
}; | |
var hacerMaruchan = function() { | |
return 'Hacer maruchan'; |
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
var arregloNombres = | |
['Irving', 'Emmanuel' ,'Gonzalez']; | |
// 0 1 2 | |
function enteroRandomEnRango(min, max) { | |
var numero = Math.random() * (max - min) + min; | |
var entero = Math.floor(numero); | |
return entero; | |
}; |
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
var baseUrl = 'https://api.parse.com/1', | |
appId = 'D9w1oUCImGUoXXXXXXXXXfVav8Tu7kCsCnP4fQfQ', | |
apiKey = 'MpwvEsR34t7j5MIXXXXXXXXXXXXXXJwG3ezOVeang'; | |
var _register = function(params, lambda, lambdaerror) { | |
var method = 'POST', | |
url = baseUrl + '/installations', | |
payload = (params) ? JSON.stringify(params) : ''; | |
_helper(url, method, payload, function(data, status) { |
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
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | |
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
<!-- | |
Checkstyle configuration that checks the Google coding conventions from Google Java Style | |
that can be found at https://google.github.io/styleguide/javaguide.html. | |
Checkstyle is very configurable. Be sure to read the documentation at | |
http://checkstyle.sf.net (or in your downloaded distribution). |
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
echo "=============> Update repositories" | |
apt-get update | |
echo "=============> Install linux extras" | |
apt-get install linux-image-extra-$(uname -r) | |
echo "=============> Install apparmor" | |
apt-get install apparmor | |
echo "=============> Ensure that APT works with the HTTP protocol" |
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
Template.linePrice.onRendered(function () { | |
$('.collapsible').collapsible({ | |
accordion: false | |
}); | |
}); | |
Template.linePrice.helpers({ |
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
var array = ['a','b','c','d','e','f','g','h','i']; | |
var sort = function(array){ | |
var arrayA = []; | |
var arrayB = []; | |
var newArray = []; | |
var half = Math.floor((array.length/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
<Button | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="" | |
android:background="@drawable/fondo_boton"/> | |
<!-- fondo_boton, es el nombre del archivo XML donde pusiste las imagenes --> |
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
//************************** Esto en el fragment **************************// | |
//...... codigo | |
public void setLabelText(String text){ | |
mMyTextView.setText(text); | |
} | |
//..... codigo |