Skip to content

Instantly share code, notes, and snippets.

View devjah's full-sized avatar
🐖
💨

Eugeniu Vozoca devjah

🐖
💨
View GitHub Profile
@devjah
devjah / smooth_scroll_to_element.js
Last active November 13, 2020 22:42
Smooth scroll to element with ID referenced in href
$(function(){
$('.menu a').on('click', function(){
$('html, body').animate({
scrollTop: $( $.attr(this, 'href') ).offset().top
}, 500);
return false;
});
});
// OR
@devjah
devjah / duplicate_line_xcode.md
Created September 21, 2020 20:03 — forked from emotality/duplicate_line_xcode.md
Xcode - Duplicate Line key binding

Xcode line duplicate

Bind keys to duplicate lines in Xcode

  1. Open below directory in Finder with Cmnd + Shift + G
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/
@devjah
devjah / jquery-ui_datepicker_turbolinks.js
Last active November 20, 2020 22:06
Turbolinks back button breaks datepicker fix
@devjah
devjah / solargraph.yml
Created July 9, 2021 15:13
Rails Solargraph config
---
include:
- "**/*.rb"
exclude:
- spec/**/*
- test/**/*
- vendor/**/*
- ".bundle/**/*"
require:
- actioncable
@devjah
devjah / Pghero on Rails with Dokku.txt
Created February 4, 2023 12:42 — forked from monsha/Pghero on Rails with Dokku.txt
Pghero on Rails with Dokku
#postgresql setup
ssh -i ~/.ssh/id_rsa root@<domain>
dokku postgres:connect <db>
psql=# SHOW config_file;
-> /var/lib/postgresql/data/postgresql.conf
psql=# \q
docker ps