Skip to content

Instantly share code, notes, and snippets.

View DevGW's full-sized avatar
🔥
building ... things!

JB (DevGW) DevGW

🔥
building ... things!
View GitHub Profile
@DevGW
DevGW / USAGE
Created June 28, 2023 20:03 — forked from garrettdimon/USAGE
A basic example of a custom Rails generator with the full guide and explanation available at https://garrettdimon.com/journal/posts/creating-custom-rails-geenrators
Description:
Generates a plain Ruby class with the given NAME
Example:
`bin/rails generate plain Name`
This will create:
app/models/name.rb
test/models/name_test.rb
@DevGW
DevGW / mysql_cheat_sheet.md
Created April 28, 2023 15:51 — forked from bradtraversy/mysql_cheat_sheet.md
MySQL Cheat Sheet

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@DevGW
DevGW / OS X Code Signing Pyinstaller.md
Last active April 5, 2023 14:30 — forked from txoof/OS X Code Signing Pyinstaller.md
OSx Code Signing Pyinstaller executable #mac #appdev

Setup

  • Create a developer account with Apple
  • Download and install X-Code from the Apple App Store
  • Open and run X-Code app and install whatever extras it requires
  • Open the preferences pane (cmd+,)
    • click the + in the lower right corner
    • choose Apple ID
    • enter your apple ID and password
@DevGW
DevGW / ruby_array_methods_cheatsheet.md
Last active March 14, 2023 16:27 — forked from mkdika/ruby_array_methods_cheatsheet.md
Ruby arrays methods Cheatsheet #ruby #cheatsheet

Ruby Arrays Methods Cheatsheet

This is collection of Ruby Array methods usage, tips & tricks.

Codes block

# All array method can use do..end block.
[1,2,3].each do |number|
 world = "World #{number}"