Skip to content

Instantly share code, notes, and snippets.

View whdzera's full-sized avatar
♦️
Focusing

whdzera whdzera

♦️
Focusing
View GitHub Profile
@whdzera
whdzera / Rakefile
Last active June 15, 2025 07:16
jekyll-stimulus-tw-starter
task :default do
sh "rake -T"
end
desc "Boilplate Jekyll"
task :jekyll, [:name] do |t, args|
abort "Please provide a name. Usage: rake jekyll[Name]" unless args[:name]
project_name = args[:name]
sh "cp -R jekyll-template-starter #{project_name}"
@whdzera
whdzera / chapters.rb
Created May 20, 2025 18:45
increase chapter in kitsumanga
# rails console
one_piece = Manga.find_by(title: "One Piece")
(1..1129).each do |n|
Chapter.create!(
manga_id: one_piece.id,
chapter_number: n,
images: "[]"
)
RenderAsync.configure do |config|
config.jquery = true # This will render jQuery code, and skip Vanilla JS code
end
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
@whdzera
whdzera / input-group-in-simple-form.md
Created November 9, 2019 01:40 — forked from chunlea/input-group-in-simple-form.md
How to use Boostrap 3 input-group in Simple Form

Finally, Simple Form support Boostrap 3. 👏

But I found it still dosen't support some components in Bootstrap 3. Or may be in the future. But I can't wait, so I find a solution to support them. It was inspired by heartcombo/simple_form#531 (comment) .

This is a final solution and I used in my project.

simple_form

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# added to config/environments/*.rb
config.hosts = nil
sudo echo "LC_ALL=en_US.UTF-8" >> /etc/environment
sudo echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
sudo echo "LANG=en_US.UTF-8" > /etc/locale.conf
sudo locale-gen en_US.UTF-8
@whdzera
whdzera / blinks.zsh-theme
Created October 7, 2019 05:54
blinks zsh theme mod