Skip to content

Instantly share code, notes, and snippets.

View resure's full-sized avatar

Gadzhi Gadzhiev resure

View GitHub Profile
@resure
resure / gist:1521155
Created December 26, 2011 13:32
Guard --verbose output
~/Temporary/scpfoundation[master] ✗ ➞ guard --verbose
Guard could not detect any of the supported notification libraries.
Guard is now watching at '/Users/resure/Temporary/scpfoundation'
DEBUG (17:29:44): Hook :start_begin executed for Guard::Spork
DEBUG (17:29:44): Command execution: ps aux | awk '/spork/&&!/awk/{print $2;}'
DEBUG (17:29:45): Killing Spork servers with PID:
Starting Spork for RSpec
Using RSpec
Preloading Rails environment
Loading Spork.prefork block...
---
:verbose: true
gem: --no-ri --no-rdoc
:update_sources: true
:sources:
- http://gems.rubyforge.org
- http://gems.github.com
:backtrace: false
:bulk_threshold: 1000
:benchmark: false
We couldn’t find that file to show.
We couldn’t find that file to show.
require 'rubygems'
require 'spork'
Spork.prefork do
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
@resure
resure / 20120305063318_devise_create_users.rb
Created March 9, 2012 14:22
RSpec & Factory_girl & Validation problems
class DeviseCreateUsers < ActiveRecord::Migration
def change
create_table(:users) do |t|
t.string :username
t.string :real_name
t.boolean :author, default: false, null: false
t.boolean :moderator, default: false, null: false
t.boolean :admin, default: false, null: false
t.datetime :banned_at
@resure
resure / hw2.rb
Created March 31, 2012 14:21
ДЗ №2 по электронике
# encoding: utf-8
# Домашнее задание №2
# Гаджиев Г. П., АК5-41
# Исходные данные
B = 200.0
a = B / (B + 1)
I_ка = 0.002
E_к = 12.0
U_бэ = 0.7
@resure
resure / jump-to-dir.plugin.zsh
Created April 1, 2012 18:48
Jump-To-Dir Plugin for oh-my-zsh (inspired by Ryan Bates's config).
c() { cd ~/code/$1; }
_c() { _files -W ~/code -/; }
h() { cd ~/$1; }
_h() { _files -W ~/ -/; }
b() { cd ~/Dropbox/$1; }
_b() { _files -W ~/Dropbox/ -/; }
t() { cd ~/Temporary/$1; }
http://scpfoundation.ru/our-foundation ++++ ACCEPTED
http://scpfoundation.ru/meeting-from-past --00 DECLINED
http://scpfoundation.ru/scp-1143-ru +++0 ACCEPTED
http://scpfoundation.ru/scp-1949-ru +oo- DECLINED
http://scpfoundation.ru/scp-1106-ru ++00 ACCEPTED
http://scpfoundation.ru/scp-1221-ru ---- DECLINED
http://scpfoundation.ru/scp-1142-ru +000 DECLINED
Безопасность жизнедеятельности
# система стандартов безопасности труда
ССБТ ГОСТ XX.X.XXX-XX
...
# БЧС ГОСТ 22.0.00-00