This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Mono C# Launch console", | |
"type": "coreclr", | |
"request": "launch", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create many to many records between two models displaying one of the parent info on the other parent form. |
Rails with ActiveDirectory/Devise login with email or username (using devise_ldap_authenticatable gem)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mina/bundler' | |
require 'mina/rails' | |
require 'mina/git' | |
# require 'mina/rbenv' # for rbenv support. (http://rbenv.org) | |
require 'mina/rvm' # for rvm support. (http://rvm.io) | |
require 'mina/puma' | |
set :application_name, 'APP_NAME' | |
set :domain, '1.1.1.1' | |
set :deploy_to, '/home/USER/apps/APP_NAME' |
Gist title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Extra setup for :semantic_ui_left_labeled_input | |
# Inside /config/initializers/simple_form/left_labels_tag_components | |
module SimpleForm | |
module Components | |
module LeftLabelTags | |
def left_label (wrappers_options = nil) | |
@icon_tag ||= begin | |
# Made to be used as currency label, but if specified | |
# left label can be changed with [:l_lab] | |
options[:l_lab] ||= '$' |
NewerOlder