Skip to content

Instantly share code, notes, and snippets.

View jeanlucaslima's full-sized avatar
😃

Jean Lucas jeanlucaslima

😃
View GitHub Profile

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:

import Ember from 'ember';
export default Ember.Component.extend({
arrayOfFruit: ['apple', 'banana', 'pear'],
actions: {
add(val){
this.get('arrayOfFruit').pushObject(val);
}
}
});
@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
@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>
Verifying that +jeanlucas is my blockchain ID. https://onename.com/jeanlucas
@jeanlucaslima
jeanlucaslima / intructions.md
Created December 26, 2015 17:14
Installing Steam Ubuntu 14.04.03 64 bits dell laptop
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates && sudo apt-get update && sudo apt-get dist-upgrade # install intel graphics updates
sudo apt-get install libc6:i386 libgl1-mesa-dri-lts-vivid:i386 libgl1-mesa-glx-lts-vivid:i386 
sudo apt-get install compizconfig-settings-manager 
  1. Launch CompizConfig Settings Manager from the Dash menu.
  2. Go to composite
  3. Uncheck Unredirect Fullscreen Windows
@jeanlucaslima
jeanlucaslima / main.c
Created May 14, 2015 20:13
ascii letters counter
#include <stdio.h>
int main(void) {
char c = NULL;
int letters = 0, numbers = 0;
while(c != '\n') {
scanf("%c", &c);
if (c > 47 && c < 58) // if it's a number
numbers++;
@jeanlucaslima
jeanlucaslima / media.c
Created March 25, 2015 01:36
Maior, menor, média em C
#include <stdio.h>
// Declarando a biblioteca que especifica as funcoes printf() e scanf()
int main() {
int i;
int maior, menor, entrada;
float media;
scanf(" %d", &entrada);
// o espaço antes eh para evitar que leia lixo do buffer
@jeanlucaslima
jeanlucaslima / gist:63d76aadf209be747135
Created March 21, 2015 03:20
MySQL date to JavaScript
// Divide a string em [ Y, M, D, h, m, s ]
var t = "2015-03-21 03:12:01".split(/[- :]/);
// Aplica os itens em uma nova variável, já no padrão de data JavaScript
var d = new Date(t[0], t[1]-1, t[2], t[3], t[4], t[5]);
@jeanlucaslima
jeanlucaslima / .zshrc
Created March 13, 2015 13:01
My .zshrc
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="ys"
# Uncomment the following line to use case-sensitive completion.