Skip to content

Instantly share code, notes, and snippets.

View rookiemonkey's full-sized avatar

Kevin Basina rookiemonkey

View GitHub Profile
@rookiemonkey
rookiemonkey / custom_fields_devise.markdown
Created February 9, 2021 09:23 — forked from withoutwax/custom_fields_devise.markdown
Adding Custom Fields to Devise

Adding Custom Fields to Devise

Before doing anything, please check the versions of the gem files:

gem 'rails', '~> 5.1.4'
gem 'devise', '~> 4.4.0'

Disclaimer - This solution may not work with older versions of rails and devise. Versions listed above were the latest versions of gems which I was using at the time of creation and tests. (10 Jan 2018)

@rookiemonkey
rookiemonkey / mime.html
Created February 5, 2021 04:56 — forked from topalex/mime.html
How to check real mime type of image in javascript
<html>
<head>
<script type="text/javascript" src="/jquery.min.js"></script>
<title>Mime type checker</title>
<script>
$(function () {
var result = $('div#result');
if (window.FileReader && window.Blob) {
$('span#submit').click(function () {
var files = $('input#file').get(0).files;
@rookiemonkey
rookiemonkey / gist:0573b53ff00911e06f6d3e2c9b9ef71e
Last active February 8, 2021 06:27 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

Frequently Used by ROOKIEMONKEY

  • 🎉 :tada:
  • 🔧 :wrench:
  • ✔️ :heavy_check_mark:
  • :heavy_plus_sign:
  • 💥 :collision:
  • 📂 :open_file_folder:
  • 🌈 :rainbow: