Skip to content

Instantly share code, notes, and snippets.

View arthurvasconcelos's full-sized avatar
🖖
Live long and prosper.

Arthur Vasconcelos arthurvasconcelos

🖖
Live long and prosper.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am arthurvasconcelos on github.
  • I am avasconcelos (https://keybase.io/avasconcelos) on keybase.
  • I have a public key ASDBBfiMkvCHUstUVELUwsCUj8DZWuoBgP61oCwilnX79Qo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am arthurvasconcelos on github.
  • I am avasconcelos (https://keybase.io/avasconcelos) on keybase.
  • I have a public key ASCEkevQXNk-UKcRBZeyVGwiyk3AsKx-7d2_bBSgM0Y7xQo

To claim this, I am signing this object:

@arthurvasconcelos
arthurvasconcelos / .babelrc
Last active February 19, 2018 16:54
Webpack configuration not working with matfish2/vue-tables-2
{
"comments": false,
"env": {
"main": {
"presets": [
[
"env",
{
"modules": false,
"targets": {
input = ['bike', 'kibe', 'foo', 'face', 'cafe', 'lua', 'ula', 'lau', 'ok'];
// dado o input, imprimir
// bike kibe
// foo
// face cafe
// lua lau ula
// ok
// em qq ordem, desde que os anagramas estejam juntos na mesma linha
@arthurvasconcelos
arthurvasconcelos / divideWithLogarithms.js
Created November 16, 2016 12:05 — forked from deadkff01/divideWithLogarithms.js
JavaScript divide function without using "/"
// Multiplication and division rules... ((+)*(+)=+) ((-)*(-)=+) ((+)*(-)=-) ((-)*(+)=-)
const multiply = (x, y) => {
let r = Math.exp(Math.log(Math.abs(x)) + Math.log(Math.abs(y))).toFixed(2)
return Number((x < 0 && y < 0) ? r : (x < 0 || y < 0) ? -r : r)
}
const divide = (x, y) => {
return (x === 0) ? 0 : multiply(((multiply(x, y) < 0) ? -1.0 : 1.0), Math.exp(Math.log(Math.abs(x)) - Math.log(Math.abs(y))))
}
@arthurvasconcelos
arthurvasconcelos / utils.preload-images.js
Created July 26, 2016 00:39 — forked from chrism/utils.preload-images.js
Preloading images using Ember.JS util
import Ember from 'ember';
var Promise = Ember.RSVP.Promise;
export default function preloadImages(...urls) {
let promises = urls.map(url => {
return new Promise((resolve, reject) => {
let image = new Image();
image.onload = resolve;
image.onerror = reject;
image.src = url;
<?php
namespace App\Custom\Pagination\Presenters;
use Illuminate\Pagination\BootstrapThreePresenter;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Pagination\UrlWindow;
class MaterializePresenter extends BootstrapThreePresenter
{