Como bloquear el botón Atras o "Back" en AndroId para cuando desarrollamos una aplicaciones:
Otra alternativa con el botón Atras o "Back" también es utilizar "onBackPressed()" pero esta disponible de AndroId 2.0 en adelante:
Mas información sobre lo anterior ACÁ
En este blog voy dejando información que me suelo encuentro en Internet. Para poder tenerla a mano siempre, al igual que otra gente del palo.. Los temas están relacionados con informática, programación, desarrollo web y móvil.
Mostrando entradas con la etiqueta Snippets. Mostrar todas las entradas
Mostrando entradas con la etiqueta Snippets. Mostrar todas las entradas
2011-05-25
2010-09-14
27 ToolOnline para guardar y comparti codigo Snippets de manera simple.
Snipplr
“With Snipplr you can keep all of your frequently used code snippets in one place that’s accessible from any computer. You can share your code with other visitors and use what they post, too. Did we mention that Snipplr works with TextMate? Yeah, we rock.”CodeSnippets
“Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)”Home | byteMyCode
“byteMyCode is a project designed to make the task of sharing source code easier. We have modeled a community around making it easy to find, share, revise, comment on, and rate code snippets.”SnippetsMania
“Organize and share your code snippets. Snippetsmania is a free accessible collection of code snippets. It currently supports 34 different programming languages. The database holds a total count of 99 code and programming snippets and examples.”codesnipp.it
“codesnipp.it is a social site for developers to post their snippets, follow and share code with other devs and get coding help. ”Paga y comparte de manera rapida tu codigo.
The apps below are similar to those we just looked at but place much more emphasis on fast code sharing as opposed to organized code storage. Most just require a copy and paste and you’re ready to go!Snipt.org
Share source code on Twitter and the Web.New – Pastie
“Clean user interface with sensible defaults. Need to nickname, describe, set tab settings and more? You’ll have to look elsewhere. One text box, paste, done. Simple.”Smipple – Social Code Snippets
“Smipple is a social service for saving, storing, organizing, and sharing snippets of code with your friends and coworkers. Make friends. Improve your coding skills. Earn bragging rights.”Gist – GitHub
“Gist is a simple way to share snippets and pastes with others. All gists are git repositories, so they are automatically versioned, forkable and usable as a git repository.”Copy Paste Code
“Copy Paste Code allows you to publish your code with colored syntax for most popular programming languages out there. After publishing you can share your code to colleagues and friends, and they can debug and use your code snippets.”CodeTidy
A quick and easy, no-frills code sharing utility.Ideone
“Ideone is something more than a pastebin; it’s an online compiler and debugging tool which allowsto compile and run code online in more than 40 programming languages.”
Pastebin
One of the most popular tools of this kind, Pastebin supports a huge list of languages.Mystic Paste
PasteSite.Com – Easy Usable Pastebin
“PasteSite.Com is a tool which allows you to submit a sample of code which can then be viewed with syntax highlighting from the website.”Slexy 2.0
“Slexy.org is a powerful, slick, and sexy pastebin designed with the user in mind. Use Slexy.org to paste errors for debugging, show off your code or your tech specs, or share anything else with other Internet users worldwide.”2010-09-12
Manipular DOM con jQuery: 10 snippets útiles
10 snippets de gran utilidad para trabajar con DOM usando jQuery:
- Añadir una clase CSS a un elemento específico
$('#myelement').addClass('myclass'); - Eliminar una clase CSS de un elemento
$('#myelement').removeClass('myclass');
- Comprobar si un elemento tiene una clase
$(id).hasClass(class);
- Cambiar de CSS usando jQuery
$('link[media='screen']').attr('href', 'Alternative.css'); - Añadir HTML a un elemento
$('#lal').append('sometext'); - Comprobar si un elemento existe
1.if ($('img').length) {
2. log('We found img elements on the page using "img"');
3.} else {
4. log('No img elements found');
5.}
- Obtener el elemento padre de un elemento
var id = $("button").closest("div").attr("id"); - Obtener los hermanos de un elemento
$("div").siblings(); - Eliminar una opción de una lista de selección
.
$("#selectList option[value='2']").remove(); - Obtener la opción seleccionada como texto
.
$('#selectList :selected').text(); - Aplicar un efecto "cebra" a las tablas
.
$("tr:odd").addClass("odd"); - Contar los hijos de un elemento
.
$("#foo > div").length;
Suscribirse a:
Entradas (Atom)