Snippets
Useful Rails Query
Ruby
Find users with more than 5 posts using ActiveRecord: `User.joins(:posts).group(:id).having("C...
View SnippetConvert Sticky Notes (outlook) .eml files to markdown files.md
Markdown
Convert Sticky Notes (outlook) .eml files to markdown files.md
View SnippetAdd middleware request logging for token testing to rails
Ruby
Add middleware request logging for token testing to rails
View SnippetA basic example of a custom Rails generator with the full guide and explanation available at https://garrettdimon.com/journal/posts/creating-custom-rails-geenrators
A basic example of a custom Rails generator with the full guide and explanation available at http...
View SnippetOSx Code Signing Pyinstaller executable
Markdown
OSx Code Signing Pyinstaller executable
View SnippetSignificant Knowledge Transfer Areas for SD
Markdown
Significant Knowledge Transfer Areas for SD
View SnippetScript to generate table of contents for user's gists
Python
Script to generate table of contents for user's gists
View Snippetshell :: prepend first line of one file to another
Shell
shell :: prepend first line of one file to another
View SnippetGenerate seed.rb from existing models and data
Ruby
Generate seed.rb from existing models and data
View SnippetGrep for and kill multiple processes with
Shell
Grep for and kill multiple processes with
View SnippetOverride header options for specific navigation screen
JavaScript
Override header options for specific navigation screen
View SnippetJavascript :: continue vs. break in loops
JavaScript
Javascript :: continue vs. break in loops
View SnippetFeedMonster OSN (create/update) to push
Markdown
FeedMonster OSN (create/update) to push
View SnippetScrollView with Touchable Opacity and KeyboardAvoidingView for form -native
JavaScript
ScrollView with Touchable Opacity and KeyboardAvoidingView for form -native
View SnippetJavascript :: defining constants w/ default params
JavaScript
Javascript :: defining constants w/ default params
View SnippetRuby / Rails :: Create new app (MySQL, No turbo-links)
Shell
Ruby / Rails :: Create new app (MySQL, No turbo-links)
View SnippetReact :: Info.plist for new app from template
Text
React :: Info.plist for new app from template
View SnippetReact :: build new app from our template app
Text
React :: build new app from our template app
View SnippetReddit Automod :: Require Post Flair or Remove
Text
Reddit Automod :: Require Post Flair or Remove
View SnippetRuby / Rails :: app/views/layouts/_header.html.erb if signed in...show menu
Ruby
Ruby / Rails :: app/views/layouts/_header.html.erb if signed in...show menu
View Snippetshell :: Updating/Upgradiing Ruby Version on Server
Shell
shell :: Updating/Upgradiing Ruby Version on Server
View SnippetJavascript :: alternating character Caps example
JavaScript
Javascript :: alternating character Caps example
View SnippetJavascript :: Object Spreads refactoring
JavaScript
Javascript :: Object Spreads refactoring
View SnippetJavascript :: using backticks to write Javascript
JavaScript
Javascript :: using backticks to write Javascript
View SnippetJavascript :: Functions within Functions
JavaScript
Javascript :: Functions within Functions
View Snippetgit :: gitup after clone (only have to clone once)
Text
git :: gitup after clone (only have to clone once)
View SnippetObjective-C :: UITableView Slide to Delete
Objective-C
Objective-C :: UITableView Slide to Delete
View SnippetObjective-C :: UITableView Slide to Multi
Objective-C
Objective-C :: UITableView Slide to Multi
View SnippetReact :: Fastlane (auto versioning for mobile)
JSON
React :: Fastlane (auto versioning for mobile)
View SnippetJavascript :: Arrays II: NESTED ARRAYS
JavaScript
Javascript :: Arrays II: NESTED ARRAYS
View Snippetpostgres :: Reset unique keys for incremental column
Text
postgres :: Reset unique keys for incremental column
View SnippetRuby / Rails :: Rails 7 new app with bootstrap
Shell
Ruby / Rails :: Rails 7 new app with bootstrap
View SnippetJavascript :: clearing console w/ javascript
JavaScript
Javascript :: clearing console w/ javascript
View Snippetgit :: Deleting Bad Branch and Resetting Master
Text
git :: Deleting Bad Branch and Resetting Master
View Snippetgit :: Update your local git without cloning
Text
git :: Update your local git without cloning
View SnippetRuby / Rails :: Devise Login for application.html.erb
Ruby
Ruby / Rails :: Devise Login for application.html.erb
View SnippetRuby / Rails :: New Gem, Plugin or Engine
Ruby
Ruby / Rails :: New Gem, Plugin or Engine
View SnippetJavascript :: Recursion II Arrays and Objects
JavaScript
Javascript :: Recursion II Arrays and Objects
View SnippetRuby / Rails :: Adding a module to rails project
Ruby
Ruby / Rails :: Adding a module to rails project
View Snippet