Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Writing code

Karytonn Karytonn

💻
Writing code
View GitHub Profile
@Karytonn
Karytonn / google_sheet-to-json.md
Last active Nov 4, 2021
How to get a Google Sheet as JSON
View google_sheet-to-json.md

How to get a Google Sheet as JSON

Preparing Your Google Sheet

  1. The first row of your spreadsheet should be headers, and the rest is data under those headers (see example).
  2. Share the spreadsheet so anyone can see it (“Share” button in top right corner > “Anyone on the internet with this link can view”).

Preparing you url access

View SEO meta tags template
<!-- Primary Meta Tags -->
<title>Câmara Municipal de Bela Vista de Goiás</title>
<meta name="description" content="O Legislativo mais perto de você!">
<meta name="keywords" content="câmara municipal, bela vista de goiás, poder legislativo, câmara, vereadores">
<!-- Secodary Meta Tags -->
<meta name="application-name" content="Câmara Municipal">
<meta http-equiv="content-language" content="pt-br">
<meta name="author" content="Câmara Municipal de Bela Vista de Goiás">
<meta name="creator" content="CloudFaster">
@Karytonn
Karytonn / Copyright-danamic-year.markdown
Last active Nov 2, 2021
Copyright template with dinamic year
View Copyright-danamic-year.markdown
@Karytonn
Karytonn / isScroll.markdown
Last active Oct 20, 2021
Find out which element is creating horizontal scroll?
View isScroll.markdown

Find out which element is creating horizontal scroll?

Run the following code in your browser console to find out who is at fault:

let width = document.documentElement.offsetWidth;

[].forEach.call(
  document.querySelectorAll('*'),
  function(el) {
@Karytonn
Karytonn / Angular-dynamic-font-size.ts
Last active Oct 20, 2021
Angular: font-size and accessibility
View Angular-dynamic-font-size.ts
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-header-accessibility',
templateUrl: './header-accessibility.component.html',
styleUrls: ['./header-accessibility.component.scss']
})
export class HeaderAccessibilityComponent implements OnInit {
//Default and reset font size
@Karytonn
Karytonn / Angular >> Move to different page
Last active Oct 20, 2021
Angular >> Move to different page
View Angular >> Move to different page
@Component({
selector: 'app-visit-rangle',
template: `
<button
type="button"
(click)="goTopage()">
Visit Rangle
</button>
`
})
View get-full-year-js.markdown

Get Full Year with Javascript


Using on copyright

<div class="footer">
  <p>
    Copyright &copy;
    <script>document.write(new Date().getFullYear());</script> | Created by