As one of my passions is Web Performance, something I do whenever I apply for an open position is to review how well they are doing on the front end.
This is a review of the landing page only, I keep other secrets for the Friday xD
| CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD` | |
| git fetch | |
| LOCAL_HASH=`git show-ref -s refs/heads/$CURRENT_BRANCH` | |
| REMOTE_HASH=`git show-ref -s refs/remotes/origin/$CURRENT_BRANCH` | |
| if [ "$LOCAL_HASH" == "$REMOTE_HASH" ]; then | |
| echo "There are no changes, force pushing" | |
| git push -f | |
| else |
| map <leader>bd :Bclose<cr> | |
| command! Bclose call <SID>BufcloseCloseIt() | |
| function! <SID>BufcloseCloseIt() | |
| let l:currentBufNum = bufnr("%") | |
| let l:alternateBufNum = bufnr("#") | |
| if buflisted(l:alternateBufNum) | |
| buffer # |
| PDO::PARAM_STR converts whatever you give it to a string | |
| PDO::PARAM_INT converts bools into longs | |
| PDO::PARAM_BOOL converts longs into bools | |
| That's all, and when I say all, I mean EVERY. POSSIBLE. MOTHERFUCKING. CONVERSION. wtf?!?!? | |
| So, for some strange reason, my INT database field ID loads up as an string, and I cant elegantly make a INT out of it... |
| module FizzBuzz | |
| extend self | |
| def get(number) | |
| result = '' | |
| result << 'Fizz' if multiple?(number, 3) | |
| result << 'Buzz' if multiple?(number, 5) | |
| return result if result.any? | |
| number.to_s | |
| end |
| Clean Code | |
| Diseño Ágil con TDD | |
| Growing Object-Oriented Software, Guided by Tests | |
| Apprenticeship Patterns: Guidance for the Aspiring Software Craftsman |
| (function(){ | |
| var script, totalPages, requests, i; | |
| script = document.createElement('script'); | |
| script.src = "//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"; | |
| script.onload = loadUnderscore; | |
| document.body.appendChild(script); | |
| window.applications = []; | |
| requests = []; |
| /**********************************************/ | |
| /* | |
| /* IR_Black Skin by Ben Truyman - 2011 | |
| /* | |
| /* Based on Todd Werth's IR_Black: | |
| /* http://blog.toddwerth.com/entries/2 | |
| /* | |
| /* Inspired by Darcy Clarke's blog post: | |
| /* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
| /* |
| module.exports = (robot) -> | |
| robot.hear /./i, (msg) -> | |
| sender = msg.message.user.name.toLowerCase() | |
| if ( sender == "naks") | |
| msg.reply "Shut the fuck up!" |