Skip to content

Instantly share code, notes, and snippets.

@vishhnu-dev
vishhnu-dev / .gitattributes
Created June 20, 2023 22:54 — forked from Peralysis/.gitattributes
Standard .gitattributes file for Unreal Engine 4 Projects
# UE file types
*.uasset filter=lfs diff=lfs merge=lfs -text
*.umap filter=lfs diff=lfs merge=lfs -text
# Raw Content types
*.fbx filter=lfs diff=lfs merge=lfs -text
*.3ds filter=lfs diff=lfs merge=lfs -text
*.psd filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
@vishhnu-dev
vishhnu-dev / rails http status codes
Created May 12, 2023 20:02 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@vishhnu-dev
vishhnu-dev / string_validation.rb
Created December 21, 2022 17:20 — forked from timuruski/string_validation.rb
Tip: RegExp implements case equality.
# If you want to check whether a string matches a regular expression,
# but not return the match data, you can just use === the case equality operator.
# Bad
!! ('foobar' =~ /bar/) #=> true
!! ('foo' =~ /bar/) #=> false
# Good
/bar/ === 'foobar' #=> true
/bar/ === 'foo' #=> false