Writing Zsh Completion for Padrino
Just the first code block was 🙌 goto
Just the first code block was 🙌 goto
It has been extensively documented that programmers are willing to put in long hours of effort in order to save ten minutes of “unnecessary” labor. This is known as optimization. src Working on an open-source contribution
run command_with_output | tee /path/to/destination/file.txt You’ll still get the output of your command to the terminal, but that output will also get piped into file.txt, thanks to the tee command. Pre-installed on OS X.
var uniqueArray = duplicatesArray.filter(function(elem, pos) { return duplicatesArray.indexOf(elem) == pos; }); Lovely. [goto](http://mikeheavers.com/main/code-item/removing_duplicates_in_an_array_using_javascript)
“There is something quite colonial, too, about collecting data from users and repackaging it to sell back to them. I think of it as the White Nerd’s Burden.” [goto](http://idlewords.com/talks/web_design_first_100_years.htm)
goto
During a phone screen recently, the CTO of the company was going through my portfolio site. He checked the browser’s network console and noticed that the site — a page built with React components — was sending multiple requests a second for data from a JSON object [the object serves as the page’s datastore because spinning up a database in this instance would be overkill]. A learning moment! I revisited the React docs and the code for the components. With a better understanding of React, the issue was quickly apparent: every time the Dealer component was rendered, an AJAX request for data.json fired. Which, just to get static data, was a lot. ...
Short version: once vim is running, hit the : key to get to the Action Line [as I’m now calling it] and type syntax on before hitting your enter key. A wonderful world of colors awaits you. [goto](http://www.cyberciti.biz/faq/turn-on-or-off-color-syntax-highlighting-in-vi-or-vim/)
nowonlyghosts: sixpenceee: Margaret Hamilton is a computer scientist and mathematician. She was the lead software engineer for Project Apollo. Her work prevented an abort of the Apollo 11 moon landing. She’s also credited for coining the term “software engineer.” Those stacks are the code she wrote for Apollo 11. Incredible.
git clean Today, I’ve been trying out various Yeoman generators to kickstart a web app coding challenge. After manually deleting the generated files from the first generator I tested, I took a moment to look up a command that would quickly remove all of the untracked files in my working directory. git clean -di not only removes the untracked files [leaving the repo’s README.md untouched], but the -d flag also deletes untracked directories, while the -i flag does it all in interactive mode; it lists the files to be removed before asking me how to proceed. Easy peasy!