Exemplo da utilização do cycle para um carrossel de listas.
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
Show hidden characters
{ | |
// Destacar pastas de arquivos | |
"bold_folder_labels": true, | |
// Estilo do cursor ("smooth”, “phase”, “blink”, “wide” e “solid”) | |
"caret_style": "phase", | |
// Esquema de cores para Texto | |
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme", | |
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
# Urls Amigáveis com .htaccess | |
# material de apoio: http://blog.thiagobelem.net/aprendendo-urls-amigaveis/ | |
# Instruções | |
# primeiro vem o endereço novo e depois vem o endereço atual | |
# cada linha de RewriteRule representa uma url do seu projeto | |
# OBS: Quando for linkar as páginas no html não precisa incluir a extensão. | |
# seguindo o exemplo abaixo, só é necessário <a href="projetos"> |
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
# See http://help.github.com/ignore-files/ for more about ignoring files. | |
# | |
# If you find yourself ignoring temporary files generated by your text editor | |
# or operating system, you probably want to add a global ignore instead: | |
# git config --global core.excludesfile ~/.gitignore_global | |
# Ignore bundler config | |
/.bundle | |
# Ignore the default SQLite database. |
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
{ | |
"name": "thulioph", | |
"version": "1.0.0", | |
"license": "MIT", | |
"homepage": "thulioph.com", | |
"private": true, | |
"ignore": [ | |
"**/.*", | |
"node_modules", | |
"bower_components", |
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
var appCache = window.applicationCache; | |
// Verifica se um novo cache está disponível no carregamento da página. | |
window.addEventListener('load', function(e) { | |
window.applicationCache.addEventListener('updateready', function(e) { | |
if (window.applicationCache.status == window.applicationCache.UPDATEREADY) { | |
// O Browser baixa o novo cache | |
// Troque o cache e recarregue a página para obter o novo conteúdo | |
window.applicationCache.swapCache(); |
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
// class dos links que vão receber o click | |
$(".link-menu").on("click", function(event){ | |
// a animação vai ocorrer no html, body | |
$('html, body').animate({ | |
// pega o atributo href do this (link que recebeu o click) | |
// e faz a animação com velocidade 1000 para o destino do href; | |
scrollTop: $($(this).attr("href")).offset().top |
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 initialize() { | |
// Exibir mapa; | |
var myLatlng = new google.maps.LatLng(-8.0631495, -34.87131120000004); | |
var mapOptions = { | |
zoom: 17, | |
center: myLatlng, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
} |
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 initialize() { | |
// Exibir mapa; | |
var myLatlng = new google.maps.LatLng(-8.0631495, -34.87131120000004); | |
var mapOptions = { | |
zoom: 17, | |
center: myLatlng, | |
panControl: false, | |
mapTypeId: google.maps.MapTypeId.ROADMAP | |
} |