Skip to content

Instantly share code, notes, and snippets.

@Nikeshsuwal
Nikeshsuwal / index.slim
Last active December 14, 2015 05:15
Use fontawesome icon as background image
form
.form-group
.image-upload
label for="society_image" class="input-lg"
span
| Upload Society Picture
= f.file_field :image, placeholder: "Upload Society Picture",class: 'form-control input-lg inputfile'
anonymous
anonymous / EPadxd.markdown
Created December 8, 2015 18:35
EPadxd
anonymous
anonymous / WrbGMG.markdown
Created December 7, 2015 17:53
WrbGMG
@xecutioner
xecutioner / git tricks
Last active August 16, 2016 09:28
git tricks
Remove merged branch
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d
Git log of code snippet
git log -S'the line from your file' -- path/to/your/file.txt
@toshimaru
toshimaru / jquery-scroll-bottom.js
Last active July 21, 2024 00:02
Detect the scrolling to bottom of the page using jQuery.
$(window).on("scroll", function() {
var scrollHeight = $(document).height();
var scrollPosition = $(window).height() + $(window).scrollTop();
if ((scrollHeight - scrollPosition) / scrollHeight === 0) {
// when scroll to bottom of the page
}
});