This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.intel_syntax noprefix | |
.global _main | |
_main: | |
push rbp | |
push r12 | |
push r13 | |
push r14 | |
mov rbp, rsp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rspec/autorun' | |
def prime_numbers_generator | |
current = 2 | |
loop do | |
possible_divisors = 2.upto(current / 2) | |
unless possible_divisors.find { |divisor| current % divisor == 0 } | |
yield current | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/vim/vim.git | |
cd vim | |
./configure --prefix=/usr/local --without-x --disable-nls --with-tlib=ncurses --enable-multibyte --enable-rubyinterp --enable-pythoninterp --with-features=huge | |
make | |
# This is to fix non-ascii characters in this file (should be fixed soon in stable release) | |
iconv -c -t UTF-8 ./runtime/tools/efm_perl.pl > ./runtime/tools/efm_perl.pl | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Models | |
module Invitations | |
class Base | |
belongs_to :sender | |
belongs_to :recipient | |
end | |
class JoinGroup < Base | |
... |