Skip to content

Instantly share code, notes, and snippets.

View emmahyde's full-sized avatar
🤫

Emma Hyde emmahyde

🤫
View GitHub Profile
@emmahyde
emmahyde / rubymine_shortcutss.md
Last active February 21, 2024 03:14
RubyMine Shortcuts

Searching

Shortcut Function
⌘F, ⌘⇧F Find in File, Find in Project
⌘R, ⇧⌘R Replace in file, Replace in project
⌘⇧A Search RubyMine Actions
⌘⇧O Search Filenames
⌘⌥O Search Symbols (methods, classnames, etc.)
⌘ + LClick See Declaration/Usages
(if it is unable to choose one, a menu with the possibilities opens)
⇧⇧ Search Anything

system: STEP 1: Parse the message and determine the user's desired VERBOSITY: V=1: extremely terse V=2: concise V=3: detailed (default) V=4: comprehensive V=5: exhaustive and nuanced detail with comprehensive depth and breadth

STEP 2: Generate a Markdown table: |Expert(s)|{list; of; EXPERTs}|

STEP 1: Parse the message and determine the user's desired VERBOSITY:
V=1: extremely terse
V=2: concise
V=3: detailed (default)
V=4: comprehensive
V=5: exhaustive and nuanced detail with comprehensive depth and breadth
STEP 2: Generate a Markdown table:
|Expert(s)|{list; of; EXPERTs}|
|:--|:--|
@emmahyde
emmahyde / yardoc_cheatsheet.md
Created August 26, 2023 15:02 — forked from phansch/yardoc_cheatsheet.md
Improved YARD cheatsheet
@emmahyde
emmahyde / yardoc_cheatsheet.md
Created August 26, 2023 14:10 — forked from chetan/yardoc_cheatsheet.md
YARD cheatsheet
erDiagram
  ALLOCATION_LINE_ITEM {
    int id
    int line_item_id
    string line_item_field "[base_amount, discount_amount, tax_amount]"
    int amount "A positive or negative value"
    int unallocated_amount "initialized as `amount`"
    int allocated_amount "initialized as 0"

The following error is encountered in OSX Catalina (and presumably newer versions):

ruby-2.7.2 - #extracting ruby-2.7.2 to /Users/ehyde/.rvm/src/ruby-2.7.2 - please wait
ruby-2.7.2 - #configuring - please wait
ruby-2.7.2 - #post-configuration - please wait
ruby-2.7.2 - #compiling - please wait
Error running '__rvm_make -j12',
please read /Users/ehyde/.rvm/log/1614189092_ruby-2.7.2/make.log

There has been an error while running make. Halting the installation.
# According to Ruby’s official web page, Ruby is a:
"dynamic, open source programming language with a focus on simplicity and productivity."
"It has an elegant syntax that is natural to read and easy to write."
# Basic syntactical code:
variable_name = 'sillyboys' # no semicolons, untyped
def method_name do
puts 'lol' # no parentheses needed for method calls if no chaining
Great Keyboard Shortcuts:
  • is the Command () key.
  • is the Control key.
  • is the Option (alt) key.
  • is the Shift key.
Keyboard Shortcut! Why I Use It All The Time!
⌘+Left Click See Declaration/Usages
(if it is unable to choose one, a menu with the possibilities opens)
⌘⌥+L Auto-Format Highlighted Section(if no section highlighted, format entire document)
@emmahyde
emmahyde / blur.c
Last active July 8, 2021 03:23
maybe!
#include "helpers.h"
#include <math.h>
// Blur image
void blur(int height, int width, RGBTRIPLE image[height][width])
{
// instantiate a new array with `height` number of rows and `width` number of columns
RGBTRIPLE blurred_image[height][width];
// Loop over each row in `image`