This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class NoPassword::CredentialsController < ApplicationController | |
before_action :assign_credentials | |
class Editor < Phlex::HTML | |
def initialize(credentials:) | |
@credentials = credentials | |
end | |
def template(&) | |
style do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add your own tasks in files placed in lib/tasks ending in .rake, | |
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |
require_relative "config/application" | |
Rails.application.load_tasks | |
desc "Set local gems" | |
task :gems do | |
Dir["gems/**"].each do |path| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "openssl" | |
require "securerandom" | |
require "bundler/inline" | |
gemfile do | |
gem "anybase" | |
gem "activesupport", require: "active_support" | |
gem "rspec", require: "rspec/autorun" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "open-uri" | |
require "rubygems/package" | |
require "fileutils" | |
require "pathname" | |
require "yard" | |
require "net/http" | |
class Gemomatic | |
attr_reader :code_objects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
// Settings in here override those in "LSP-tailwindcss/LSP-tailwindcss.sublime-settings" | |
{ | |
"enabled": true, | |
"selector": "source.ruby | source.jsx | source.js.react | source.js | source.tsx | source.ts | source.css | source.scss | source.less | text.html.vue | text.html.svelte | text.html.basic | text.html.twig | text.blade | text.html.blade | embedding.php | text.html.rails | text.html.erb | text.haml | text.jinja | text.django | text.html.elixir | text.html.ngx", | |
"settings" : { | |
"tailwindCSS.experimental.classRegex": [ | |
"class:\\s*\"([^\"]*)\"" | |
], | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gem-to-sqlite.rb | |
# | |
# Usage: ruby gem-to-sqlite.rb <gem_name> <gem_version> | |
# Example: ruby gem-to-sqlite.rb rake 13.0.6 | |
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'yard', '~> 0.9.28' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax = docker/dockerfile:experimental | |
# Dockerfile used to build a deployable image for a Rails application. | |
# Adjust as required. | |
# | |
# Common adjustments you may need to make over time: | |
# * Modify version numbers for Ruby, Bundler, and other products. | |
# * Add library packages needed at build time for your gems, node modules. | |
# * Add deployment packages needed by your application | |
# * Add (often fake) secrets needed to compile your assets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Resources | |
class BaseAction | |
attr_accessor :params | |
def before | |
end | |
def after | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Komponent | |
class << self | |
attr_reader :css_block, :html_block, :script_block | |
def css(value=nil ,&block) | |
@css_block = Proc.new { value || block.call } | |
end | |
def html(value=nil ,&block) | |
@html_block = Proc.new { value || block.call } |