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
# Be sure to restart your server when you modify this file. | |
# Add new inflection rules using the following format | |
# (all these examples are active by default): | |
ActiveSupport::Inflector.inflections do |inflect| | |
inflect.plural /([taeiou])$/, '\1s' | |
inflect.plural /([rlmnd])$/, '\1es' | |
inflect.singular /([taeiou])s$/, '\1' | |
inflect.singular /([aeiou][rlmnd])es$/, '\1' |
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
#CHANGE SITEURL & HOMEURL | |
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
#CHANGE GUID | |
UPDATE wp_posts SET guid = REPLACE (guid, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com'); | |
# CHANGE URL IN CONTENT | |
UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com'); |
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
javascript:document.body.contentEditable='true'; document.designMode='on'; void 0 |
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 ifconfig wlan0 mtu 1398 |
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
⨀_⨀ | |
⨂_⨂ | |
(/◔ ◡ ◔)/ | |
°ﺑ° | |
(¬_¬) | |
(´・ω・`) | |
(ʘ_ʘ) | |
(ʘ‿ʘ) | |
(๏̯͡๏ ) | |
(◕_◕) |
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
require 'rubygems' | |
require 'net/http' | |
url = URI.parse('http://laurel.datsi.fi.upm.es/index.php') | |
req = Net::HTTP::Get.new(url.path) | |
req.add_field 'Range', 'bytes=714-732' | |
res = Net::HTTP.start(url.host, url.port) {|http| |
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
// plugin para indicador de cargando | |
$.fn.showLoading = function(top, left) { | |
top = top || 0; | |
left = left || 0; | |
this.each(function() { | |
// crear indicador | |
var $this = $(this); | |
var offset = $this.offset(); | |
offset.top += top; | |
offset.left += $this.width() + left; |
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
# Ruby, Generacion de minuaturas usando Image Magick | |
i = 0 | |
full = "1200x900" | |
thumb = "320x240" | |
images = Dir.entries(".") | |
images.each do |file| | |
if file.match(/\.jpg$/i) |
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
<%= make_breadcrumb(yield :breadcrumb) %> |
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
/*! split_in_span v1 | flasheves.com */ | |
jQuery.fn.extend({ | |
split_in_span: function(){ | |
var arr = jQuery(this).text().split(' '); | |
var tamo = arr.length; | |
for(i=0;i<tamo;i++){ arr[i] = '<span>' + arr[i] + '</span>'; } | |
jQuery(this).html(arr.join(' ')); | |
} | |
}); |
OlderNewer