Skip to content
View c80609a's full-sized avatar
Block or Report

Block or report c80609a

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. How to view the entire Rails console... How to view the entire Rails console history?
    1
    puts Readline::HISTORY.to_a
  2. Ruby Integer::MAX and Integer::MIN Ruby Integer::MAX and Integer::MIN
    1
    class Integer
    2
      N_BYTES = [42].pack('i').size
    3
      N_BITS = N_BYTES * 16
    4
      MAX = 2 ** (N_BITS - 2) - 1
    5
      MIN = -MAX - 1
  3. rubocop.rb rubocop.rb
    1
    # Rubocop's Metrics/AbcSize metric is disabled for 
    2
    # this method as Rubocop determines this method to 
    3
    # be too complex while there's no way to make it 
    4
    # less "complex" without introducing extra methods
    5
    # (which actually will make things _more_ complex).
  4. md5.js md5.js
    1
    MD5 = function(e) {
    2
        function h(a, b) {
    3
            var c, d, e, f, g;
    4
            e = a & 2147483648;
    5
            f = b & 2147483648;
  5. pull_request.txt pull_request.txt
    1
    We have a policy of not adding new methods to Ruby
    2
    core classes unless it would benefit the framework
    3
    implementation or the large majority of 
    4
    applications. For most cases I believe the required
    5
    keyword arguments are enough. This is actually the 
  6. Ruby number formatting Ruby number formatting
    1
    # g limits the number of displayed digits
    2
    "%.2g" % 1.234 # => 1.2
    3
    "%.2g" % 123 # => 1.2e+02
    4
    "%g" % 1000000000 # => 1e+09
    5