Other Languages

POL-Y-GLOT. I-AM-NOT.
Yes you are. You are learning Ruby, Rails, testing…you’re already multilingual. In this profession you are always going to be trying out new ways to do things, which includes new languages. For Ruby on Rails development, it makes sense to know some HTML, CSS, Sass, JavaScript, AJAX, JSON, SQL, HAML, and jQuery, just to name a few. As most of these will be used as tools to compliment your web apps, you probably will not be using them as regularly as you do the core languages. That said, you’ll want to be sure to capture and remember how you applied the language. What, if anything, needed to be done to use the language inside a Ruby on Rails application? What was unique about the circumstances, the code, and the solution you arrived at? What were the helpful resources?

Disable an ES lint rule - inline

04/24/17  Public, Other Languages

http://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments

The linting error I was receiving was:

Do not mutate state directly. Use setState()

Here is an example of applying the inline disabling of the r...

1 vote - harrylevine

Encode an SVG file using base64 encoding

09/22/16  Public, Command Line, Tricks, Other Languages

Here is how to encode an SVG file, using base64 encoding, and then leverage the encoded string to set an element's background-image property to the SVG file in question.

1 - Open up an irb session
2 - Read the file into a variable, using...

1 vote - harrylevine

Helpful site for writing Regular Expressions

05/02/16  Public, Other Languages

Rubular

Rubular is a Ruby-based regular expression editor. It's a handy way to test regular expressions as you write them.

1 vote - harrylevine

Link one JavaScript file to another in Rails - Use function in one.js inside of two.js

01/20/16  Public, Other Languages

In Rails, this is to place your JS code in more than one file, based on functionality, to keep things DRY, and to prevent one file from becoming large and complicated.

If you want to call a function from one.js in files two.js and `three.js...

1 vote - harrylevine