- Create custom instance in the Curseforge App
- Add mods
- Test compatibility of added mods
This file contains hidden or 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
| local RADIUS = 88 | |
| local GRAV_REACH = math.sqrt(usagi.GAME_H * usagi.GAME_H + usagi.GAME_W * usagi.GAME_W) | |
| local G_MAX = 0.05 | |
| local GRAV_BRACKET = (GRAV_REACH - RADIUS) | |
| - ((GRAV_REACH * GRAV_REACH) - (RADIUS * RADIUS)) / (2 * GRAV_REACH) | |
| local DAMAGE_FACTOR = 0.0006 | |
| local SUN_DIR = { x = 1, y = 0 } | |
| local MAX_INTEGRITY = 100 | |
| local BAYER = { |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
NewerOlder