Skip to content

Instantly share code, notes, and snippets.

View jeanlucaslima's full-sized avatar
😃

Jean Lucas jeanlucaslima

😃
View GitHub Profile
@jeanlucaslima
jeanlucaslima / index.html
Created March 2, 2016 04:04
UIKit vertical align
<!DOCTYPE html>
<html lang="en" class="uk-height-1-1">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="uikit.min.css" />
<script src="jquery.min.js"></script>
<script src="uikit.js"></script>
</head>
@jeanlucaslima
jeanlucaslima / 0_reuse_code.js
Created March 19, 2016 01:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
import Ember from 'ember';
export default Ember.Component.extend({
arrayOfFruit: ['apple', 'banana', 'pear'],
actions: {
add(val){
this.get('arrayOfFruit').pushObject(val);
}
}
});

Keybase proof

I hereby claim:

  • I am jeanleonino on github.
  • I am jeanlucas (https://keybase.io/jeanlucas) on keybase.
  • I have a public key whose fingerprint is 89D3 F322 E5E8 16B7 D2CB 1467 FFB7 CC6E 5621 6FD4

To claim this, I am signing this object:

@jeanlucaslima
jeanlucaslima / liker.js
Last active April 11, 2017 20:26
Liker for Tinder web
// The main idea here is to just play with the UI of Tinder Web.
// Not sure if this causes some kind of filtering if you use scripts like this.
var like = function() {
document.querySelectorAll('button')[2].click();
setTimeout(like, 100) // adjust the time to whatever you would like
}
like();
@jeanlucaslima
jeanlucaslima / weird.js
Last active May 5, 2017 05:42
JS Perf notes
// Estranho bug de performance encontrado por [andreasgal](https://github.com/andreasgal)
//
// Comportamento esperado: foo() e bar() terem ao menos performance similar
// Comportamento observado: foo() tem performance diferente que bar() dependendo da máquina
//
// A única diferença entre foo() e bar() é a ordem de declaração dos valores dentro do vetor
// Não sei explicar o motivo desse comportamento
var A = [];
function foo() {
@jeanlucaslima
jeanlucaslima / empresas.md
Last active October 20, 2017 13:46
Lusófonos usando Ember.js

Usuários de Ember.js

Ember logo

Empresas/apps/projetos brasileiros, portuguese e de outros locais que falam português e utilizam Ember.js.

Última atualização: 2017/maio

Brasil

Verifying my Blockstack ID is secured with the address 1C9pgtwDj3bKovBCbY1DxgjYdJ8RbDyEQm https://explorer.blockstack.org/address/1C9pgtwDj3bKovBCbY1DxgjYdJ8RbDyEQm
0 verbose cli [
0 verbose cli '/usr/local/Cellar/node/15.5.1/bin/node',
0 verbose cli '/usr/local/bin/npm',
0 verbose cli 'run',
0 verbose cli 'js-lint'
0 verbose cli ]
1 info using npm@7.3.0
2 info using node@v15.5.1
3 timing config:load:defaults Completed in 1ms
4 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 1ms
@jeanlucaslima
jeanlucaslima / main.js
Last active February 26, 2021 12:29
JavaScript quizz array
quiz([11, 9, 6, 11, 5], 3); // output: 26, 16
quiz([11, 9, 6, 11, 5, 1], 3); // output: 26, 17
quiz([11, 9, 6, 11, 5, 1, 1], 3); // output: 26, 17, 1
quiz([1, 2, 1, 3, 1, 4, 1, 5, 1], 2); // output: 3, 4, 5, 6, 1
// quiz sums every n elements of arr and print.
// also print the sum of any remaining elements
function quiz(arr, n) {
let response = [];