Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am pololee on github.
  • I am pololee (https://keybase.io/pololee) on keybase.
  • I have a public key ASDSTD18KD7aW0XFO4-b0rMeX7DnH5SgGVtooQ7GY0WgQAo

To claim this, I am signing this object:

$ git pull
remote: Counting objects: 409, done.
remote: Compressing objects: 100% (66/66), done.
remote: Total 409 (delta 269), reused 248 (delta 247), pack-reused 96
Receiving objects: 100% (409/409), 82.91 KiB | 0 bytes/s, done.
Resolving deltas: 100% (273/273), completed with 61 local objects.
From github.com:alphagov/smart-answers
   c71d9c3..6f9dbfe  master     -> origin/master
   9f9ef5d..741945f  benefit-cap-calculator-pre-autumn-changes -> origin/benefit-cap-calculator-pre-autumn-changes
@pololee
pololee / The Technical Interview Cheat Sheet.md
Created December 10, 2016 22:06 — 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.
@pololee
pololee / mock-yield.rb
Created December 8, 2015 19:57
mock yield
object = mock()
object.expects(:expected_method).yields('result')
yielded_value = nil
object.expected_method { |value| yielded_value = value }
yielded_value # => 'result'
@pololee
pololee / rename-git-branch.sh
Created December 8, 2015 19:54
rename git branch locally and remotelly
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@pololee
pololee / check-css-class.rb
Created October 22, 2015 22:43
check a specific CSS class on a node in selenium test
def disabled?
node[:class].include?('is-disabled')`
end
@pololee
pololee / social-icon-hover.css
Created March 13, 2015 23:35
hover color for different social icons
/* Change the color of individual Social Icons */
a.icon-feed {color:#DC622C;} /* Change to desired color */
a.icon-twitter {color:#00B6F1;} /* Change to desired color */
a.icon-facebook {color:#3B5998;} /* Change to desired color */
a.icon-google {color:#C20806;} /* Change to desired color */
a.icon-instagram {color:#2C6A93;} /* Change to desired color */
a.icon-wordpress {color:#04769C;} /* Change to desired color */
a.icon-youtube {color:#C31A1E;} /* Change to desired color */
a.icon-pinterest {color:#C91517;} /* Change to desired color */
a.icon-github {color:#040204;} /* Change to desired color */