Skip to content

Instantly share code, notes, and snippets.

View marinados's full-sized avatar
🤓

Marina Starkova marinados

🤓
  • Swile
  • Nantes
View GitHub Profile
@chetan
chetan / yardoc_cheatsheet.md
Last active May 10, 2024 02:53
YARD cheatsheet
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 18, 2024 11:25
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@tadast
tadast / ssl_puma.sh
Last active January 29, 2024 04:41 — forked from trcarden/gist:3295935
localhost SSL with puma
# 1) Create your private key (any password will do, we remove it below)
$ cd ~/.ssh
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
@balvig
balvig / active_admin.js
Last active August 23, 2020 14:22
Active Admin Cloudinary
# app / assets / javascripts / active_admin.js
//= require active_admin/base
//= require jquery.ui.widget
//= require jquery.iframe-transport
//= require jquery.fileupload
//= require cloudinary/jquery.cloudinary
//= require attachinary
//= require attachments
@francois-blanchard
francois-blanchard / checkbox_nested.md
Created April 3, 2015 14:45
Create nested attributes with checkbox

Create nested attributes with checkbox

# Class
has_many :sc_invited_celebrities
accepts_nested_attributes_for :proposed_posts, :sc_invited_celebrities, :answer_to_questions
# Controller
def new
 @social_campaign = SocialCampaign.new
class MyKlass
  include
  CONSTANTS
  belongs_to
  has_one
  has_many
  accepts_nested_attributes_for
  attr_accessible
 validates
activity_log
boss_news
delayed_job
link_posts
link_tweets
posts
rating_histories
tweets
@francois-blanchard
francois-blanchard / full_search_sunspot.md
Last active January 20, 2016 15:53
Full search specific fields with sunspot (SOLR)
@yannvery
yannvery / RSpec_cheatsheet.md
Last active February 22, 2018 20:32
RSpec cheatsheet

RSpec Cheatsheet

Specs layers

 +-----------------------------------------------------------------------------------------+

   +----------+                                                       +------------------+
   |          |                                                       |                  |
   |  View    |                                                       |                  |
   |  Specs   |            View                                       |                  |