This is a list of all the things that I use as part of daily workflow.
- Password Management: 1Password
- Flash Cards: Anki Flash Cards
- Alfred 4 Productivity App for Mac: Alfred 4 Workflow
- Airmail: Airmail
- App Tamer CPU Monitor: App Tamer
# frozen_string_literal: true | |
def longest_word(sentence) | |
split_sentence = sentence.split | |
my_longest_word = split_sentence.max_by { |word| word.size } | |
same_length_words = split_sentence.select { |word| word.size == my_longest_word.size } | |
if same_length_words.empty? | |
my_longest_word | |
else | |
same_length_words.last |
This is a list of all the things that I use as part of daily workflow.
import './App.css' | |
import withListLoading from './components/withListLoading' | |
import List from './components/List' | |
import React, { useEffect, useState } from 'react' | |
function App() { | |
const ListLoading = withListLoading(List) | |
const [appState, setAppState] = useState({ | |
loading: false, |
After installing the Big Sir 11.0 update I attempted to install graphviz to use with a tool that will map dependecies in node.js projects. The output looked like this:
❯ brew install graphviz
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 4 taps (hashicorp/tap, homebrew/cask-versions, homebrew/core and homebrew/cask).
==> New Formulae
libbsd
using Dapper; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Data.SqlClient; | |
using System.Linq; | |
using System.Transactions; | |
namespace DataLayer | |
{ | |
public class ContactRepository : IContactRepository |
.PHONY: tf-init | |
tf-init: | |
docker-compose -f deploy/docker-compose.yml run --rm terraform init | |
.PHONY: tf-fmt | |
tf-fmt: | |
docker-compose -f deploy/docker-compose.yml run --rm terraform fmt | |
.PHONY: tf-validate | |
tf-validate: |
require 'random_data' | |
50.times do | |
Post.create!( | |
title: RandomData.random_sentence, | |
body: RandomData.random_paragraph | |
) | |
end | |
posts = Post.all |