Skip to content

Instantly share code, notes, and snippets.

View noku's full-sized avatar

Peter Negrei noku

  • Mixbook
  • Chisinau MD
View GitHub Profile
@noku
noku / rspec_rails_cheetsheet.rb
Created March 18, 2016 10:37 — forked from them0nk/rspec_rails_cheetsheet.rb
Rspec Rails cheatsheet (include capybara matchers)
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)
@noku
noku / criteria.txt
Last active September 11, 2015 14:31 — forked from gigamonkey/criteria.txt
Hiring criteria: looking for the ability to …
Write a program that does what it’s supposed to do
Write idiomatic code
Debug a program that you wrote
Debug a program someone else wrote
Debug the interaction between a system you wrote and one you didn’t
File a good bug report
Modify a program you didn’t write
Test a program you wrote
Test a program you didn’t write
Learn a new programming language
@noku
noku / The Technical Interview Cheat Sheet.md
Last active August 27, 2015 22:34 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@noku
noku / tmux-cheatsheet.markdown
Last active June 7, 2024 23:47 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

Tmux Shortcuts & Cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@noku
noku / test.pl
Last active August 29, 2015 14:22
test
Domains
s=Symbol*
c=s(Symbol,Symbol,Symbol,Symbol,Symbol)
c1=c*
Predicates
perm(s1, s1)
e1(Symbol, s1, s1)
r(INTEGER, c1)
solutie(c1)
@noku
noku / test
Created May 29, 2015 15:33
test
Domains
s=Symbol*
c=s(Symbol,Symbol,Symbol,Symbol,Symbol)
c1=c*
Predicates
perm(s1, s1)
e1(Symbol, s1, s1)
r(INTEGER, c1)
solutie(c1)
@noku
noku / capybara.md
Last active August 29, 2015 14:07 — forked from steveclarke/capybara.md

Capybara

save_and_open_page

Matchers

have_button(locator)