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
<link rel="import" href="../topeka-elements/category-icons.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
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
// Declaración de un ArrayList de "String". Puede ser de cualquier otro Elemento u Objeto (float, Boolean, Object, ...) | |
ArrayList<String> gatitosArrayList = new ArrayList<String>(); | |
// Añade el elemento(un gatito) al ArrayList | |
gatitosArrayList.add("Benito"); | |
// Añade el elemento al ArrayList en la posición 'n' | |
gatitosArrayList.add(n, "Don Gato"); |
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
package cl.inacap.ksoapejemplo; | |
import java.util.concurrent.ExecutionException; | |
import cl.inacap.clases.WSBackgroundConnection; | |
import com.example.ksoapejemplo.R; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.widget.TextView; | |
import java.text.DecimalFormat; |
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
es: | |
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words() | |
datetime: | |
distance_in_words: | |
half_a_minute: "hace un minuto" | |
less_than_x_seconds: | |
one: "hace menos de 1 segundo" | |
other: "hace menos de %{count} segundos" | |
x_seconds: | |
one: "1 segundo" |
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
#!/bin/bash | |
echo "Actualizando timezone" | |
wget ftp://ftp.iana.org/tz/tzdata-latest.tar.gz | |
tar xvfz tzdata-latest.tar.gz | |
zic southamerica | |
sudo mv /etc/localtime /etc/localtime.old | |
sudo ln -s /usr/share/zoneinfo/America/Santiago /etc/localtime |
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
# encoding: utf-8 | |
class ImageUploader < CarrierWave::Uploader::Base | |
# Include RMagick or MiniMagick support: | |
include CarrierWave::RMagick | |
# include CarrierWave::MiniMagick | |
# Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility: | |
include Sprockets::Helpers::RailsHelper |
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
<?php | |
function wpse_dequeue_google_fonts() { | |
wp_dequeue_style( 'divi-fonts' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'wpse_dequeue_google_fonts', 20 ); |
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
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
jQuery("button.et_pb_contact_submit.et_pb_button").text('Enviar'); | |
}); | |
</script> |
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
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl'); |
OlderNewer