- Create custom instance in the Curseforge App
- Add mods
- Test compatibility of added mods
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
static VALUE | |
pack_pack(VALUE ary, VALUE fmt) | |
{ | |
static const char nul10[] = "\0\0\0\0\0\0\0\0\0\0"; | |
static const char spc10[] = " "; | |
const char *p, *pend; | |
VALUE res, from, associates = 0; | |
char type; | |
long items, len, idx, plen; | |
const char *ptr; |
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
gem 'combine_pdf' | |
gem 'prawn' | |
gem 'paperclip' |
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
en: | |
errors: &errors | |
messages: | |
bad_uri: is an invalid url | |
bad_protocol: must start with %{protocols} | |
activemodel: | |
errors: | |
<<: *errors | |
activerecord: | |
errors: |
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
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
fr: | |
devise: | |
confirmations: | |
confirmed: 'Votre compte a été validé, vous êtes maintenant connecté' | |
send_instructions: 'Vous allez recevoir les instructions nécessaires à la confirmation de votre compte dans quelques minutes' | |
send_paranoid_instructions: 'Si votre e-mail existe dans notre base de données, vous allez bientôt recevoir un e-mail contenant les instructions de confirmation de votre compte.' | |
failure: | |
already_authenticated: "Vous êtes déjà connecté !" |
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 'open-uri' | |
require 'nokogiri' | |
doc = Nokogiri::HTML(open("http://www.threescompany.com/")) | |
titles = doc.css("#content_inner h2") | |
containers = doc.css("#content_inner .format_text") | |
articles = [] | |
titles.each_with_index do |title, i| | |
images = containers[i].css("div > img, a > img")[0..-2] | |
images = images.map { |image| image.attributes["src"].value } |
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
#app/inputs/collection_check_boxes_input.rb | |
class CollectionCheckBoxesInput < SimpleForm::Inputs::CollectionCheckBoxesInput | |
def item_wrapper_class | |
"checkbox-inline" | |
end | |
end |
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
#app/inputs/collection_check_boxes_input.rb | |
class CollectionCheckBoxesInput < SimpleForm::Inputs::CollectionCheckBoxesInput | |
def item_wrapper_class | |
"checkbox-inline" | |
end | |
end |
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 this setup block to configure all options available in SimpleForm. | |
SimpleForm.setup do |config| | |
# you need an updated simple_form gem for this to work, I'm referring to the git repo in my Gemfile | |
config.input_class = "form-control" | |
config.wrappers :bootstrap, tag: 'div', class: 'form-group', error_class: 'error' do |b| | |
b.use :html5 | |
b.use :placeholder | |
b.use :label | |
b.use :input |
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
refinerycms test-multiple-nested-engines | |
rails generate refinery_engine father name:string | |
bundle install | |
rails generate refinerycms_fathers && rake db:migrate | |
rails generate refinery_engine son name:string fathers:engine | |
bundle install | |
rails generate refinerycms_sons && rake db:migrate | |
rails generate refinery_engine daughter name:string fathers:engine | |
bundle install | |
rails generate refinerycms_daughters |
NewerOlder