Skip to content

Instantly share code, notes, and snippets.

View rokhimin's full-sized avatar
out sick

rokhimin wahid rokhimin

out sick
View GitHub Profile
View [RAILS]Skip vanilla js and use jquery
RenderAsync.configure do |config|
config.jquery = true # This will render jQuery code, and skip Vanilla JS code
end
View meta tag for responsive
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
@rokhimin
rokhimin / 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
View input-group-in-simple-form.md

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

View myHome.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Rails 6.0 Blocked host
# added to config/environments/*.rb
config.hosts = nil
View Ubuntu set Locale
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
@rokhimin
rokhimin / blinks.zsh-theme
Created October 7, 2019 05:54
blinks zsh theme mod
View blinks.zsh-theme
View Huginn POST webhook from Formatter
{
"post_url": "URL_LINKS..",
"expected_receive_period_in_days": "14",
"content_type": "json",
"method": "post",
"payload": {
"content": "***[UPDATE ANIME]*** @everyone ",
"embeds": [
{
"title": "__**{{title}}**__",