Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Vitor Goncalves Piovezam vitorpiovezam

🎯
Focusing
Block or report user

Report or block vitorpiovezam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View smoothscroll.js
$("a").on("click", function(event) {
if (this.hash !== "") {
event.preventDefault();
var hash = this.hash;
$("html, body").animate(
{
scrollTop: $(hash).offset().top
},
View manoDoCéu.ts
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) {
View credentials.js
module.exports = {
username: "morcegos",
password: "morcegos123"
}
View animation.css
.container{
width: 100%;
}
.foo{
width: auto;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%) !important;
@vitorpiovezam
vitorpiovezam / .hyper.js
Created May 8, 2019
My hyper console settings
View .hyper.js
// 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',
View sql.cs
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows.Input;
using Xamarin.Forms;
namespace FiapCoin.ViewModel
{
public class LoginViewModel : INotifyPropertyChanged
{
View es6map.js
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 }
View x.html
<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 Mar 12, 2019
Alter playback rate on yt or other sites videos
View setPlayback.js
// Vanilla JS
document.getElementsByTagName('video').playbackRate = 5;
View types.graphql
# 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
You can’t perform that action at this time.