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
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Microsoft Translate</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script> | |
$(function () { | |
$('#trans').on('click', function (e) { | |
e.preventDefault(); | |
var loading = $('p#loading').toggle(), |
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
<ul id="ticker"> | |
<li class="bd"> | |
<p id="slide"> | |
<span> | |
2012/01/24 | |
<a href="http://www.google.com">text00</a> | |
</span> | |
<span> | |
2011/11/08 |
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
function is_mobile () { | |
var useragents = [ | |
'iPhone', // Apple iPhone | |
'iPod', // Apple iPod touch | |
'Android', // 1.5+ Android | |
'dream', // Pre 1.5 Android | |
'CUPCAKE', // 1.5+ Android | |
'blackberry9500', // Storm | |
'blackberry9530', // Storm | |
'blackberry9520', // Storm v2 |
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 'RMagick' | |
convertedCnt = 0 | |
ARGV.each do |filename| | |
img_type = File.extname(filename).downcase | |
if (img_type==".png")||(img_type==".jpg")||(img_type==".tif") | |
ext = File.extname(filename) | |
base = File.basename(filename,ext) |
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
#!env ruby | |
require 'rubygems' | |
require 'RMagick' | |
images_dir = ARGV[0] | |
if images_dir == nil | |
puts "Error! Input images directory" | |
exit | |
end |
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
#!env perl | |
use strict; | |
use warnings; | |
use feature qw/say/; | |
use Text::CSV_XS; | |
use DateTime; | |
#CSV file |
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
#!env ruby | |
require 'rubygems' | |
require 'fileutils' | |
images_dir = ARGV[0] | |
if images_dir == nil | |
puts "Error! Input images directory" | |
exit |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Lazy share button</title> | |
</head> | |
<body> | |
<h3>MouseOver below this label.</h3> | |
<h4>URL: <a href="http://jquery.com">http://jquery.com</a></h4> | |
<div class="lazy-share-widget" id="sharing-ENTRY_ID" style="height:460px;width:320px"> |
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
0 1 | |
1 4 | |
2 0 | |
3 0 | |
4 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
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| | |
errors = Array(instance.error_message).join(',') | |
%(#{html_tag}<span class="validation-error"> #{errors}</span>).html_safe | |
end |
OlderNewer