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
I instaled MAMP and it worked great. However, when I tried to access mysql from the shell I was getting | |
$ mysql -u root -p | |
Enter password: | |
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) | |
However, using a full path to MAMP binary worked. | |
$ /Applications/MAMP/Library/bin/mysql -u root -p | |
MAMP’s mysql works with another socket file which is located at /Applications/MAMP/tmp/mysql/mysql.sock |
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
<?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> |
OlderNewer