symbolos unicode

On November 26, 2008, in trecos, by athanazio
0

maneiro demais este site : http://www.unicode.org/charts/symbols.html

Um completa referencia dos symbolos unicode. Para usar no HTML coloque &#x seguido do numero e ponto e virgula no final !

veja um guarda chuva :  2602 ☂

Tagged with:
 

jquery eh seu amigo

On September 23, 2008, in programacao, by athanazio
0

se vc programa em javascript saiba que sua vida pode mudar um bocado se resolver usar jquery … o perigo eh o vício … vicia facim facim !

imagina soh … vc tem que selecionar um elemento criado na tela e trocar o conteudo dele … digamos que eh um SPAN com o id = meu_numero_magico

usando o jquery seria algo do tipo:

$(‘#meu_numero_magico’).html(’45′);

eita que legal !! arre podia ser melhor ainda, imagina que o conteúdo do tal do span, tem de vir de uma url lah no servidor, eita vamos fazer codigos magicos que verificam isto e aquilo … não !

$(‘#meu_numero_magico’).load(‘meuaquivo.txt’);

que prático naum ?! mas o que mais gosto eh a parte de injetar código e comportamento em elementos jah existentes, vamos imaginar que queremos mostar alguma informacao quando clicarmos no nosso numero magico … veja soh que prático:

$(‘#meu_numero_magico’).click(function(){

alert( $(this).html() );
});

Estas são algumas preciosidades do jquery, e lembre-se ele eh seu amigo !!!

Tagged with:
 

format java code as html

On June 1, 2007, in Uncategorized, by athanazio
6

this eclipse plugin is very useful, specially for me that like to post java code samples !

http://www.java2html.de/eclipse.html

to use just select the code fragment that you want to create the html from and choose the format, look at the screenshots

java2html_screen1.jpg

after this just choose the export format

java2html_screen2.jpg

note that this format generates a page ready to be saved as an html file, so to use in a blog post or something don’t forget to remove the <html><body> pieces … =)

Tagged with: