Skip to content

Instantly share code, notes, and snippets.

View vitorpiovezam's full-sized avatar
🎯
Focusing

Vitor Goncalves Piovezam vitorpiovezam

🎯
Focusing
View GitHub Profile
const students = [
{ name: 'Anna', grade: 6 },
{ name: 'John', grade: 4 },
{ name: 'Maria', grade: 9 }
];
const teachers = [
{ name: 'Mark', salary: 2500 },
{ name: 'Todd', salary: 3700 },
{ name: 'Angela', salary: 1900 }
<table border="1">
<tr>
<th>Nome</th>
<th>caracteristicas</th>
<th>detalhes</th>
</tr>
<c:forEach items="${produtos}" var="produto">
<tr>
<td>${produto.nome}</td>
@vitorpiovezam
vitorpiovezam / setPlayback.js
Created March 12, 2019 22:41
Alter playback rate on yt or other sites videos
// Vanilla JS
document.getElementsByTagName('video').playbackRate = 5;
# The following types define the data model of the example service
# based on which the GraphQL API is generated
type User @model {
id: ID! @isUnique
name: String
dateOfBirth: DateTime
# Uncomment below - you can declare relations between models like this
@vitorpiovezam
vitorpiovezam / package.json
Last active March 14, 2019 17:05
apollo-graphql/package.json
{
"name": "apollo-graphql",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
{
"name": "apollo-graphql",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
@vitorpiovezam
vitorpiovezam / query.graphql
Last active March 6, 2019 01:02
graphql-queries
# Filtering the projects who have the value 'name' = "GrapQL"
project(name: "GraphQL") {
# These values will return in your JSON response
tagline
}
}
@vitorpiovezam
vitorpiovezam / types.graphql
Last active March 6, 2019 01:02
graphql model
type @model Project {
name: String
tagline: String
contributors: [User] # Reference to your User Type
}
@vitorpiovezam
vitorpiovezam / cloudSettings
Created March 4, 2019 03:00
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-03-04T03:00:05.275Z","extensionVersion":"v3.2.5"}
package br.com.fiap.primeiroaplicativo;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.EditText;