Skip to content

Instantly share code, notes, and snippets.

View thulioph's full-sized avatar
🔥

Thulio Philipe thulioph

🔥
View GitHub Profile
@thulioph
thulioph / passo-03-api-google-maps.js
Last active August 1, 2020 15:39
personalizando e animando o marcador 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
}
@thulioph
thulioph / passo-04-api-google-maps.js
Last active January 1, 2016 13:39
exibir balão de informações ao clicar no pin do 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
}
@thulioph
thulioph / mapa.js
Created December 27, 2013 22:32
código final e completo do mapa personalizado / 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
mapTypeControlOptions: {
@thulioph
thulioph / sublime - preferences - users
Last active January 3, 2016 18:09
preferências do meu sublime
{
"auto_complete_selector": "text.html.erb, source - comment, meta.tag - punctuation.definition.tag.begin",
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Dracula Color Scheme/Dracula.tmTheme",
"drag_text": false,
"draw_white_space": "all",
"fade_fold_buttons": false,
"file_exclude_patterns":
[
Feeds({
"locais": [
{
"Id": 1,
"Latitude" : -8.05719,
"Longitude": -34.882387,
"Descricao": "Aqui vem um título 1",
"Icone": "muitobem",
"Sintoma": ""
},
@thulioph
thulioph / envio_form.php
Created June 18, 2014 20:52
envio de formulario via php
<?php
extract($_POST);
$mens = "
<b>Nome:</b> ".$nome."<br /><br />
<b>Banco:</b> ".$banco."<br /><br />
<b>Assunto:</b> ".$assunto."<br /><br />
<b>CPF ou Contrato:</b> ".$cpf."<br /><br />
<b>Telefone:</b> ".$telefone."<br /><br />
<b>Email:</b> ".$email."<br /><br />
@thulioph
thulioph / Gruntfile.js
Last active August 29, 2015 14:07
Gruntfile
"use strict";
module.exports = function(grunt) {
// Definição dos arquivos js
var filesJS = [
'src/js/APP.js'
];
// Load all tasks
@thulioph
thulioph / exe09.html
Last active August 29, 2015 14:17
exe09.html
<!doctype html>
<html data-ng-app="workshopBeMEAN">
<head>
<title>{{ workshop }}</title>
<style>
.user-avatar {
width: 200px;
}
.user-label {
@thulioph
thulioph / beers.js
Created March 13, 2015 23:57
beers js
(function() {
'use strict';
angular.module('myApp.beers', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/beers', {
templateUrl: 'modules/beers/views/beers.html',
controller: 'BeersCtrl'
})
@thulioph
thulioph / beers.html
Created March 13, 2015 23:59
beers html
<h2>Workshop Be MEAN</h2>
<p>Msg: {{ msg }}</p>
<table>
<thead>
<tr>
<th data-ng-click="ordenar('name')">Name</th>
<th data-ng-click="ordenar('price')">Price</th>
<th>Ações</th>
</tr>