Skip to content

Instantly share code, notes, and snippets.

View joshRpowell's full-sized avatar
🏠
Working from home

Josh Powell joshRpowell

🏠
Working from home
  • Fort Lauderdale, FL
View GitHub Profile
{
"name": "evil_chat",
"private": true,
"dependencies": {
"@rails/webpacker": "^3.2.0",
"coffeescript": "1.12.7",
"normalize.css": "^7.0.0"
},
"scripts": {
"lint-staged": "$(yarn bin)/lint-staged"
@yalab
yalab / bootstrap-memo.md
Last active July 20, 2022 20:29
rails5 + webpacker + bootstrap
$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.js
diff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644
@d2s
d2s / install-spell-checker-to-vs-code.md
Last active August 12, 2024 19:25
Installing spell checker to VS Code

Spelling Checker for Visual Studio Code

  • README of the code-spell-checker VS Code extension.

Installing spell checker to VS Code

  • Open up VS Code
  • Press button F1
  • Type ext install code-spell-checker to the command promnt and press Enter key.
@TimothyClayton
TimothyClayton / decider.rb
Created April 10, 2017 19:46
RSpec easy loop testing
# frozen_string_literal: true
class Decider
def self.undecided
loop do
break if decision?
end
end
def self.decision?
# code yielding true or false
@zeroc0d3
zeroc0d3 / Gemfile.lock
Created February 6, 2017 10:55
Recreate Gemfile.lock
# 1) Copy this template file into root application
# 2) Run: bundle install --no-deployment
GEM
remote: https://rubygems.org/
specs:
PLATFORMS
ruby
@briankung
briankung / docker-pry-rails.md
Last active January 2, 2025 05:19
Using pry-rails with Docker
@ericclemmons
ericclemmons / example.md
Last active October 13, 2025 15:16
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here
@maxivak
maxivak / _readme.md
Last active March 6, 2024 17:57
Building URLs for simple_form - all examples. Rails

Namespace

Namespace and simple_form

  • namespace 'admin'
= simple_form_for([:admin,@item], html: { class: 'form-horizontal' }) do |f|
    
@strzibny
strzibny / unused_routes.rb
Created May 5, 2016 15:21
Find unused routes in Rails
#!/usr/bin/env ruby
# Extracted from traceroute gem + checking the presence of views as well
require_relative './config/environment.rb'
class Traceroute
def initialize(app)
@app = app
end
@srph
srph / stm.js
Last active April 25, 2024 17:54
js: standard time to military time
/**
* Standard Time to Military time
*
* @param {number} t Time to be converted
* @param {string} moridiem AM/PM
* @return {int}
*/
export default function stm (t, m) {
t = parseInt(t, 10);