Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
// This code is inside the recycler view adapter class | |
@Override | |
public void onBindViewHolder(final ViewHolder holder, int position) { | |
if (position + 1 == getItemCount()) { | |
// It is the last item of the list | |
// Set bottom margin to 72dp | |
setBottomMargin(holder.itemView, (int) (72 * Resources.getSystem().getDisplayMetrics().density)); | |
} else { | |
// Reset bottom margin back to zero |
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Escolhi tratar sobre esse assunto hoje simplesmente porque foi uma das primeiras coisas que me perguntei "como eu faço isso?" no mundo ruby. Acredito que muita gente se pergunte a mesma coisa e espero que eu possa ajudar em algo para elas. 😀
Bem, se você é um programador java, você chama sua gem de jar, se você é um programador C#, você chama de dll. Resumindo, é uma lib, uma biblioteca contendo códigos que você pode reaproveitar importando em outros projetos.
E usar gems no ruby é muito fácil, se você já deu uma brincada com rails por exemplo, é só você adicionar o código gem 'nome_da_gem'
no arquivo Gemfile
que está no root, depois executar o comando bundle install
para baixar sua gem do repositório e pronto, só sair usando a biblioteca!
Version numbers should be the ones you want. Here I do it with the last ones available at the moment of writing.
The simplest way to install elixir is using your package manager. Sadly, at the time of writing only Fedora shows
the intention to keep its packages up to date. There you can simply sudo dnf install erlang elixir
and you are good to go.
Anyway, if you intend to work with several versions of erlang or elixir at the same time, or you are tied to
a specific version, you will need to compile it yourself. Then asdf
is your best friend.
class Foo | |
class << self | |
def exec | |
something | |
rescue => ex | |
ex.message | |
end | |
def something | |
"something" |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
# Here are many ways to get terminal size from ruby | |
# By Readline | |
require 'readline' | |
Readline.get_screen_size #=> [31, 268] | |
# Get terminal size in Environemtn like IRB | |
[ENV['COLUMNS'].to_i, ENV['LINES'].to_i] |
import javafx.animation.FadeTransition; | |
import javafx.application.Application; | |
import javafx.beans.value.*; | |
import javafx.event.*; | |
import javafx.geometry.*; | |
import javafx.scene.Node; | |
import javafx.scene.Scene; | |
import javafx.scene.control.*; | |
import javafx.scene.effect.*; | |
import javafx.scene.image.*; |