Skip to content

Instantly share code, notes, and snippets.

@farmanp
farmanp / setup.sh
Last active February 16, 2023 16:48 — forked from bradp/setup.sh
Onboarding Mac Setup Script
# Overview of this script is running an automated installation workflow that goes step by step below:
# 1. Github setup
# 2. Install XCode
# 3. Install Homebrew
# 4. Install Development tools (programming languages, libraries, etc)
# 5. Setting up Mac settings
# Done!
developer_utilities_setup() {
echo "Installing tree, wget, trash, mackup, and node..."
@farmanp
farmanp / branch.js
Last active December 20, 2019 07:55
// var branch = process.argv.slice(2).join('_');
// console.log(`Branch name: ${branch}`);
// console.log(`Copy and paste below`);
// console.log(`git checkout -b ${branch}`);
function execute(command) {
const exec = require('child_process').exec
exec(command, (err, stdout, stderr) => {
process.stdout.write(stdout)
@farmanp
farmanp / Keybase.md
Created March 30, 2019 03:29
Keybase

Keybase proof

I hereby claim:

  • I am farmanp on github.
  • I am farmanp (https://keybase.io/farmanp) on keybase.
  • I have a public key ASCLzcSDeycUiIlCMNanfdokeloxcXUcSAZx8_39tXBfSgo

To claim this, I am signing this object:

<!-- Portfolio Modals -->
{% for post in site.posts %}
<div class="modal" id="#portfolioModal-{{ post.modal-id }}">
{{ post.title }}
</div>
<div class="portfolio-modal modal-dialog modal fade" id="portfolioModal-{{ post.modal-id }}" tabindex="-1" role="dialog"
aria-hidden="true">
<div class="modal-content">
<div class="close-modal" data-dismiss="modal">
"Beef Demi-Glace => 10,
"Green Onions => 10,
"Red Onion => 11,
"Heavy Whipping Cream => 12,
"Cremini Mushrooms => 12,
"Sirloin Steaks => 16,
"Shallot => 17,
"Boneless Skinless Chicken Breasts => 21,
"Garlic Cloves => 27,
"Butter => 28
@farmanp
farmanp / recipes.txt
Last active January 4, 2018 06:46
List of recipes
https://www.homechef.com/meals/steak-wellington
https://www.homechef.com/meals/adobo-chicken-enchiladas
https://www.homechef.com/meals/brown-butter-shrimp
https://www.homechef.com/meals/umami-burger
https://www.homechef.com/meals/barramundi-beurre-blanc
https://www.homechef.com/meals/acapulco-steak-tacos
https://www.homechef.com/meals/sirloin-steak-pad-thai
https://www.homechef.com/meals/baked-french-onion-penne
https://www.homechef.com/meals/wood-fired-bbq-chicken-pizza
https://www.homechef.com/meals/new-england-cod-chowder

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

/* Supporting */
.supporting {
background-color: #1c1c1c;
text-align: center;
padding: 50px 0 80px;
}
.supporting .col {
float: left;
width: 28%;
@farmanp
farmanp / _email_box.js.jsx
Created January 16, 2017 06:56
Finding out how to use Bootstrap in React-Rails
render: function () {
return (
<div bsClass="container-fluid">
<div bsClass="row-fluid">
<div className="email-box">
<EmailList emails={ this.state.emails } />
<hr />
<h2>Add a Email:</h2>
<EmailForm form={ this.state.form } onEmailSubmit={ this.handleEmailSubmit } />
</div>
@farmanp
farmanp / statements_controller.rb
Created January 4, 2017 15:53
Couldn't find Article by uuid
private
# Use callbacks to share common setup or constraints between actions.
def set_statement
@statement = Statement.find(params[:id])
end
def set_article
@article = Article.find(params[:article_id])
end
# Never trust parameters from the scary internet, only allow the white list through.
def statement_params