select2 is a great jQuery library to make (large) fields more usable. For Bootstrap 3 there is select2-bootstrap-theme...

medium.freecodecamp.com

The linked article states that CSS breakpoints should group "similar" screen sizes and thus be at: 600px "narrow"

makandra Curriculum

Basic validations Read the Rails Guide on ActiveRecord Validations. You should have an overview which kinds of validations are built...

github.com

...for the event to be processed before continuing - the event could prevent the default behavior. Luckily there is a concept called passive event listeners which is supported by all modern...

...see a performance gain when declaring scroll events as passive. To improve the scrolling behavior you should still try to keep the execution time of your handler to a minimum...

...or use a more mature solution like Webpack. Modules shared between entry points always become chunks When two entry points import the same module, that module automatically a separate file...

...a way to set a minimum file size for chunking, or to control chunking behavior per import. However there is currently no configuration at all. Modules imported by multiple entry...

If you're responsible for gatekeeping in a project, here is a guide, what to do. In order to reduce...

Here is a symbol of an eight note: ♪ Its two-byte hex representation is 0x266A. This card describes how to...

Update: This trick probably isn't very useful anymore in Ruby 2.x. The Ruby GC has improved a lot...

...are often capable of handling such inputs, the overall extraction quality tends to be better when we pass in only input with correctly oriented text. Detecting and correcting the image...

...on the whole image instead, trusting whatever confidence tesseract reports since there is no better alternative. Implementation This module takes a Vips::Image and returns a rotated version as another...

makandra dev
github.com

...holds your bash prompt. You might want to change it to serve your needs best. Here is how to: General non-printing escape sequences in your prompt have to be...

danhixon.github.com

If you encounter the error message above when running cucumber, just execute... rm rerun.txt ...in the Rails directory.

...the old versions you wish to remove. Keep at least one recent, working kernel besides the one you are currently running. Address Metapackage Conflict (GA vs. HWE)

If you have installed Rubocop in your project, RubyMine can show you Rubocop violations immediately in your editor. You probably...

sitepoint.com

Scope is all about where something is visible. It’s all about what (variables, constants, methods) is available to you...

...as e.g. Spreewald does, the following snippet will save you typing. It recognizes a prose BEM-style selector and maps it to the corresponding BEM class. For a variation on...

...this idea, see An auto-mapper for ARIA labels and BEM classes in Cucumber selectors. Examples "the main menu" -> '.main-menu' "the item box's header" -> '.item-box--header'

Take care when using rescue_from to rescue multiple errors. The following will not work, because later rescue_from statements...

makandra dev

This card is mainly an explanation how variable fonts work in CSS, not necessarily a recommendation to actually use them...

If you have a time given in a different time zone than your local one, parsing will convert it for...

...already_read" : 0, "request_body_fully_read" : true, "request_body_type" : "NO_BODY", "response_begun" : false, "session" : { "gupid" : "18asd3ed-U4FSeggT0O", "pid" : 4273 }, "last_data_send_time" : null, tells me, that...

Given group size If you would like to split a Ruby array into pairs of two, you can use the...

Say you have an RGBA color that you need as a non-transparent color because of reasons. Basically, this is...

makandra dev

Check your GPU state on chrome://gpu. If it reads "WebGL: Hardware accelerated" in the first list, you're set...

...gitignore, see https://makandracards.com/makandra/15947 [diff] algorithm = patience # A slower algorithm that sometimes produces better diffs [fetch] prune = true # Remove local remote-tracking branches that have been deleted [rebase]

main-view = date:relative author:abbreviated commit-title:graph=true,refs:true A better diff tool You may switch to delta, a fancy diff tool with syntax highlighting and...

...future we will be able to transition to display: none by using the transition-behavior: allow-discrete property. This will delay the display change until the transition ends. This is...