Skip to content

Instantly share code, notes, and snippets.

View thulioph's full-sized avatar
🔥

Thulio Philipe thulioph

🔥
View GitHub Profile
@thulioph
thulioph / Utilizando-o-Cycle.markdown
Last active December 23, 2015 14:49
A Pen by Thulio Philipe.

Utilizando o Cycle

Exemplo da utilização do cycle para um carrossel de listas.

Link do Exemplo

@thulioph
thulioph / Exemplos-da-utilização-do-Cycle.markdown
Last active December 23, 2015 14:49
exemplos de utilização do cycle jquery

Exemplos da utilização do Cycle

Demo

@thulioph
thulioph / Preferences.sublime-settings
Last active December 23, 2015 16:59
Preferences.sublime-settings
{
// 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",
@thulioph
thulioph / .htaccess
Created October 26, 2013 15:54
urls amigáveis com .htaccess
# 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">
@thulioph
thulioph / .gitignore
Last active December 29, 2015 09:49
gitigonore padrão
# 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.
@thulioph
thulioph / bower.json
Created December 4, 2013 15:52
bower.json do projeto thulioph
{
"name": "thulioph",
"version": "1.0.0",
"license": "MIT",
"homepage": "thulioph.com",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
@thulioph
thulioph / cache.js
Created December 6, 2013 19:39
cache.js
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();
@thulioph
thulioph / scroll-ancora.js
Created December 20, 2013 15:47
link âncora com scroll animado
// 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
@thulioph
thulioph / passo-01-api-google-maps.js
Last active March 28, 2017 17:26
exibição do mapa de forma simples / Artigo: API Google Maps V3 - blog.thulioph.com
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
}
@thulioph
thulioph / passo-02-api-google-maps.js
Last active September 11, 2017 19:18
modificando os controles do usuário no mapa / Artigo: API Google Maps V3 - blog.thulioph.com
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
}