Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Rrrapture's full-sized avatar

Rachelle Gray Rrrapture

View GitHub Profile
@Rrrapture
Rrrapture / javaScriptDataTypesAcronym.txt
Last active January 20, 2023 13:08
OBUNNSS Acronym for JavaScript Data Types
7 JavaScript data types: OBUNNSS
* Object
* Boolean
* Undefined
* Null
* Number
* Symbol
* String
http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-data-types-and-values
@Rrrapture
Rrrapture / lamp-laravel-aimeos-local-install-setup.txt
Last active July 20, 2017 21:15
LAMP laravel aimeos install - Mac - local
laravel-local-install-setup.txt
https://github.com/revolunet/sublimetext-markdown-preview/blob/master/README.md
specific to El Capitan, should work in Sierra as well
2017-04-21
https://laravel-news.com/laravel-5-5-php-7-0
@Rrrapture
Rrrapture / shell-vim-commands.txt
Last active May 25, 2017 18:22
General Terminal Commands - Bash shell, vim - that I'm just learning or want to have as a reference.
The text M-k is read as `Meta-K, labeled ALT - the left one - on many keyboards
If you do not have a Meta or ALT key, or another key working as a Meta key, the identical keystroke can be generated by typing ESC first, and then typing k. Either process is known as metafying the k key.
UNDO!!! LAST COMMAND:
for my terminal at least: C-_ that's control and underscore
clear-screen (C-l)
Clear the screen and redraw the current line, leaving the current line at the top of the screen.
- use instead of $:clear
@Rrrapture
Rrrapture / git-feature-branch-merge-steps.txt
Created December 24, 2016 03:21
Follow these explicit steps for using git in a command line. This walks you through a complete cycle of completing a simple story), of a feature branching workflow using just a working dev and a topic branch. Uses fetch/merge not pull, and merge commits not rebasing. Assumes a local initiated git repo and a hosted remote repo of name "origin". A…
Rachelle Gray
Git Feature Merging and Branching Workflow
- indented numbered items are command line arguments
- flush comments to give context
Follow these explicit steps for using git in a command line. This walks
you through a complete cycle of completing a simple story), of a feature
branching workflow using just a working dev and a topic branch. Uses
fetch/merge not pull, and merge commits not rebasing. Assumes a local
initiated git repo and a hosted remote repo of name "origin". Assumes
@Rrrapture
Rrrapture / regExDataTypePropertyToKey.txt
Created December 1, 2016 01:49
RegEx to convert a commented line of "data type" "property name" to a key value pair with comma
^\s?(?:\*|//)\s?[A-Za-z0-9_]+\s([a-z0-9_]+)$
\1: "",
RegEx to convert a commented line of "data type" "property name" to a key value pair with comma
Assumes property names are lowercase, it's the only part that's captured
Line 1 - Find
Line 2 - replace with
ex:
Find:
@Rrrapture
Rrrapture / regexSwapReplaceTab.txt
Created December 1, 2016 01:33
RegEx Find/Replace snippet to swap data property name and data type
^\s\*\s([a-z0-9_]+)[\t]([a-z_]+)$
* \2 \1
RegEx Find/Replace Snippet to swap data property name and data type in commented out JavaScript file.
Used in Sublime Text editor. Probably compliant with most regex-supporting languages including JS
Line 1 is Find, Line 2 is replace field
ie:
* event_category string
with
* string event_category