Skip to content

Instantly share code, notes, and snippets.

View kodamirmo's full-sized avatar
🏠
Working from home

Irving Emmanuel González kodamirmo

🏠
Working from home
  • Translate2Me
  • Mexico DF
View GitHub Profile
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",
@kodamirmo
kodamirmo / cocinar.js
Last active May 23, 2016 14:08
Funciones
var hacerSopa = function() {
return 'Hacer sopa';
};
var hacerTacos = function() {
return 'Hacer tacos';
};
var hacerMaruchan = function() {
return 'Hacer maruchan';
@kodamirmo
kodamirmo / smashFaces.js
Created May 22, 2016 04:57
Codigo JS de Smash Faces
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;
};
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) {
@kodamirmo
kodamirmo / checkstyle.xml
Last active March 10, 2016 15:49
Checkstyle parkiller
<?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).
@kodamirmo
kodamirmo / install_docker.sh
Last active February 9, 2016 03:53
Install Docker in Ubuntu 14.04
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"
@kodamirmo
kodamirmo / linePrice.js
Last active October 2, 2015 06:02
Sort prices
Template.linePrice.onRendered(function () {
$('.collapsible').collapsible({
accordion: false
});
});
Template.linePrice.helpers({
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));
<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 -->
//************************** Esto en el fragment **************************//
//...... codigo
public void setLabelText(String text){
mMyTextView.setText(text);
}
//..... codigo