Skip to content

Instantly share code, notes, and snippets.

View devsuperman's full-sized avatar
🕺
.

Tiago Bernardo devsuperman

🕺
.
View GitHub Profile
@lramosduarte
lramosduarte / config.js
Created July 26, 2016 18:36
Configuração PT-BR datePicker materialize-css
var diaSemana = [ 'Domingo', 'Segunda-Feira', 'Terca-Feira', 'Quarta-Feira', 'Quinta-Feira', 'Sexta-Feira', 'Sabado' ];
var mesAno = [ 'Janeiro', 'Fevereiro', 'Marco', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro' , 'Dezembro' ];
var data = new Date();
var hoje = diaSemana[data.getDay()] + ', ' + mesAno[data.getMonth()] + ' de ' + data.getFullYear();
$("#dataPesquisa").attr("value", hoje);
$(".datepicker").pickadate({
monthsFull: mesAno,
monthsShort: [ 'Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez' ],
weekdaysFull: diaSemana,
weekdaysShort: [ 'Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab' ],
@LindaLawton
LindaLawton / Google Service Account
Last active March 26, 2023 12:00
Example of using Google Service accounts p12, Json and key. For the Google .net client library
using Google.Apis.AnalyticsReporting.v4;
using Google.Apis.Auth.OAuth2;
using Google.Apis.Services;
using System;
using System.IO;
using System.Security.Cryptography.X509Certificates;
namespace GoogleAnaltyics.V4
{
public class ServiceAccountJson
@claudiohilario
claudiohilario / Date Picker (materializecss) config pt pt.js
Created October 23, 2016 16:38
Tradução para português do Date Picker (materializecss)
$(function () {
//Config datepiker matrializecss () language
$('.datepicker').pickadate({
selectMonths: true,//Creates a dropdown to control month
selectYears: 15,//Creates a dropdown of 15 years to control year
//The title label to use for the month nav buttons
labelMonthNext: 'Proximo Mês',
labelMonthPrev: 'Mês Anterior',
//The title label to use for the dropdown selectors
labelMonthSelect: 'Selecionar Mês',