Skip to content

Instantly share code, notes, and snippets.

@stepantubanov
stepantubanov / add-adc.asm
Last active January 25, 2021 10:31
ADD vs ADC bigint mul
.intel_syntax noprefix
.global _main
_main:
push rbp
push r12
push r13
push r14
mov rbp, rsp
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
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
@stepantubanov
stepantubanov / gist:2006496
Created March 9, 2012 13:26
Invitation classes presenters
# Models
module Invitations
class Base
belongs_to :sender
belongs_to :recipient
end
class JoinGroup < Base
...