Skip to content

Instantly share code, notes, and snippets.

View vitorpiovezam's full-sized avatar
🎯
Focusing

Vitor Goncalves Piovezam vitorpiovezam

🎯
Focusing
View GitHub Profile
# 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 / setPlayback.js
Created March 12, 2019 22:41
Alter playback rate on yt or other sites videos
// Vanilla JS
document.getElementsByTagName('video').playbackRate = 5;
<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>
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 }
@vitorpiovezam
vitorpiovezam / sql.cs
Created April 16, 2019 01:09
Xamarin
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows.Input;
using Xamarin.Forms;
namespace FiapCoin.ViewModel
{
public class LoginViewModel : INotifyPropertyChanged
{
@vitorpiovezam
vitorpiovezam / .hyper.js
Created May 8, 2019 12:50
My hyper console settings
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
.container{
width: 100%;
}
.foo{
width: auto;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%) !important;
module.exports = {
username: "morcegos",
password: "morcegos123"
}
this[temp + 'GridData'] = _.clone(this[temp + 'FilterArray']);
if (getTerm !== null && getTerm !== '') {
for (let i = 0; i < this[temp + 'GridData'].length; i++) {
if (this[temp + 'GridData'][i].Name.toLowerCase().indexOf(getTerm.toLowerCase()) !== -1) {
tempArray.push(this[temp + 'GridData'][i]);
}
if (this.isByChain && this[temp + 'GridData'][i]['PropertyName']) {
if (this[temp + 'GridData'][i]['PropertyName'].toLowerCase().indexOf(getTerm.toLowerCase()) !== -1) {
$("a").on("click", function(event) {
if (this.hash !== "") {
event.preventDefault();
var hash = this.hash;
$("html, body").animate(
{
scrollTop: $(hash).offset().top
},