Skip to content

Instantly share code, notes, and snippets.

View AbraaoAlves's full-sized avatar
☀️
stay positive

AbraaoAlves AbraaoAlves

☀️
stay positive
View GitHub Profile
@AbraaoAlves
AbraaoAlves / debug.html
Last active July 14, 2023 20:51
Fixing html errors
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>HTML debugging examples</title>
</head>
@AbraaoAlves
AbraaoAlves / Link.txt
Created August 30, 2022 11:30
Just Link
@AbraaoAlves
AbraaoAlves / cloudSettings
Created May 4, 2018 02:36
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-05-04T02:36:40.709Z","extensionVersion":"v2.9.2"}
@AbraaoAlves
AbraaoAlves / app.html
Created March 14, 2018 01:53
Dialog stuff
<template>
<h1>Dialog Repro</h1>
<button click.delegate="dt.openDialogA()">Open Dialog</button>
</template>
let isUniq = (value, index, self) =>
self.indexOf(value) === index;
let toLetters = (result, item) =>
[...result, ...item.bars.map(b => b.label)];
let labels = groups
.reduce(toLetters, [])
.filter(isUniq)
.sort()
@AbraaoAlves
AbraaoAlves / index.html
Created October 5, 2016 16:41
datasrc on IE
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GistRun</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<table datasrc="parts.xml">
@AbraaoAlves
AbraaoAlves / app.py
Created September 27, 2016 18:06
tkinter com polignos conectados
# *-* coding: utf-8 *-*
import numpy as np
from tkinter import *
from math import *
class Vertice:
def __init__(self, rotulo):
self.rotulo = rotulo
print(self.rotulo)
def igualA(self, r):
@AbraaoAlves
AbraaoAlves / tryGet.js
Created September 13, 2016 04:16
Ruby try function in Javascript today
Object.prototype.tryGet = function(props){
return (props || '').split('.').reduce( (a, b, i, l) =>
(a[b] || (i+1 === l.length ? '': {})
, this)
}
@AbraaoAlves
AbraaoAlves / app.html
Last active March 25, 2017 23:17 — forked from AshleyGrant/app.html
Aurelia tamplate map
<template>
<require from="./grid.html"></require>
<grid
data.bind="list"
config.bind="config"
>
</grid>
</template>
@AbraaoAlves
AbraaoAlves / racional.py
Last active June 30, 2016 20:26
Python Racional
import math
class Racional:
def __init__(self, dividendo, divisor):
self.divisor = divisor
self.dividendo = dividendo
def __str__(self):
return str(self.dividendo) + '/' + str(self.divisor)