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:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"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 |
// 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)))) | |
} |
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 | |
{ |