Skip to content

Instantly share code, notes, and snippets.

View spellancer's full-sized avatar

Sarkis Nanyan spellancer

  • Russian Federation
View GitHub Profile
@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
@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'
source "$HOME/.zsh/zshrc"
source "$HOME/.zsh/zshrc"
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
; 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
@spellancer
spellancer / gist:2566811
Created May 1, 2012 09:36
main.cpp --homework2
#include "stdafx.h"
#include "lexem.h"
#include <iostream>
#include <locale.h>
#include <string.h>
using namespace std;
@spellancer
spellancer / gist:2566792
Created May 1, 2012 09:35
lexem.h -- homework2
#ifndef lexem_h
#define lexem_h
#include <iostream>
using namespace std;
// ----------
char* del (char *str)
{
int i,j,n;
http://qastuffs.blogspot.com/2010/11/installing-gem-bundler-in-ubuntu-1004.html
@spellancer
spellancer / gist:2426450
Created April 20, 2012 05:55
laba 5 finish Assembly
; Template for console application
.586
.MODEL flat , c
OPTION CASEMAP:NONE
.CONST
MsgExit DB 13,10,"Press Enter to Exit",0AH,0DH,0
;Задание
;Вариант 11.
@spellancer
spellancer / gist:2426449
Created April 20, 2012 05:55
laba 5 finish C++
// Laba5.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <conio.h>
#include <iostream>
using namespace std;
#include <locale.h>