Skip to content

Instantly share code, notes, and snippets.

View nncl's full-sized avatar

Cauê Almeida nncl

View GitHub Profile
$('html,body').animate({
  scrollTop: $("<ELEMENT-HERE>").offset().top},
'slow');
{
"points" : [
{
"title" : "Place 1",
"address" : "Avenida Paulista",
"specialties" : "Cardiologia, Gastro",
"phone" : "11 1234-4321",
"latitude": -23.534749,
"longitude": -46.611924
},
/**
* @description
* Environment variables
*/
(function (window) {
window.__env = window.__env || {};
window.__env.URL_API = 'http://example.com.br:3000/institutoavonapi/v1/';
window.__env.title = 'Instituto Avon';
window.__env.author = 'Avon';
@nncl
nncl / Stuff.md
Last active January 5, 2017 10:21

Stuff

  • Only english
    • HTML
    • CSS
    • JS
  • Sass
    • Directories's Structure
    • Nesting: 3
  • HTML/HTML5
@nncl
nncl / WordPress Stuff.md
Last active November 29, 2016 18:28
Here we'll teach you how to do some useful stuff with WordPress.
[
{
"nome": "Clube Atético Mineiro",
"estado": "MG",
"escudo": "http://www.testosterona.blog.br/wp-content/uploads/2016/02/atletico-mineiro.jpg",
"anofundacao": 1908
},
{
"nome": "Clube Atlético Paranaense",
"estado": "PR",
{
"points" : [
{
"title" : "Place",
"lat" : "-23.534749",
"lng" : "-46.611924"
},
{
"title" : "Place",
"lat" : "-23.539512",
ionic prepare ios

Como automatizar o backup do MySQL e exportar pra um arquivo.sql de X em X tempos? (pra um usuário que não manja nada de phpMyAdmin, pediu um executável que fizesse isso)

@echo off

echo Starting Backup of Mysql Database on server 

For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set dt=%%c-%%a-%%b)

For /f "tokens=1-4 delims=:." %%a in ('echo %time%') do (set tm=%%a%%b%%c%%d)