- 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
| # Four spellings of a circle-circle contact solver, timed on the O(n^2) pair loop | |
| # that drives them. The question: does reaching for DragonRuby's Geometry helpers | |
| # (or xenobrain/ruby_vectormath) cost anything against hand-rolled arithmetic? | |
| # | |
| # Run: ./dragonruby mygame --eval app/bench_physics.rb --no-tick --quiet | |
| # Writes a clean, pasteable report to mygame/bench_results.md. | |
| # Needs vectormath_2d.rb from https://github.com/xenobrain/ruby_vectormath | |
| # | |
| # Set HOST below to your CPU before sharing results - the runtime can't read it. | |
| require 'lib/vectormath/vectormath_2d.rb' |
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 |
NewerOlder