Skip to content

Instantly share code, notes, and snippets.

View spellancer's full-sized avatar

Sarkis Nanyan spellancer

  • Russian Federation
View GitHub Profile
; Template for console application
.586
.MODEL flat, stdcall
OPTION CASEMAP:NONE
Include kernel32.inc
Include masm32.inc
IncludeLib kernel32.lib
IncludeLib masm32.lib
; Template for console application
.586
.MODEL flat, stdcall
OPTION CASEMAP:NONE
Include kernel32.inc
Include masm32.inc
IncludeLib kernel32.lib
IncludeLib masm32.lib
source "$HOME/.zsh/zshrc"
source "$HOME/.zsh/zshrc"
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
@spellancer
spellancer / gist:3733630
Created September 16, 2012 18:29
rails db app Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.8'
gem 'pg'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
gem 'twitter-bootstrap-rails', git: 'http://github.com/seyhunak/twitter-bootstrap-rails.git'
@spellancer
spellancer / gist:3733660
Created September 16, 2012 18:33
error bundle install
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/sarkis/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
#encoding: utf-8
include Math
r = 5
a = 0.123
b = 1.951
e = 0.00001
i = 0
x = (a + b) / 2
Удалить ФИО спортсменов, занимавших последние места.
Добавить пропущенный результат.
Изменить место провидения соревнований.
@spellancer
spellancer / gist:3937998
Created October 23, 2012 10:04
model LAB1.4 (GPSS)
### ссылка на файлы: http://d.pr/f/YaJL
PRIB STORAGE 2
GENERATE 7,3
QUEUE REG
QUEUE REG1
ENTER PRIB
DEPART REG1
@spellancer
spellancer / gist:3938127
Created October 23, 2012 10:46
model Zadacha (GPSS)
generate ,,,42
prib1 storage 35
prib2 storage 4
a queue reg1
enter prib1
depart reg1
advance 500,10
gem () {
typeset result
(
typeset rvmrc
rvm_rvmrc_files=("/etc/rvmrc" "$HOME/.rvmrc")
if [[ -n "${rvm_prefix:-}" ]] && ! [[ "$HOME/.rvmrc" -ef "${rvm_prefix}/.rvmrc" ]]
then
rvm_rvmrc_files+=("${rvm_prefix}/.rvmrc")
fi
for rvmrc in "${rvm_rvmrc_files[@]}"