Skip to content
View ashabbir's full-sized avatar
🌴
On vacation
🌴
On vacation

Block or report ashabbir

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.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

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

Report abuse

Pinned Loading

  1. class eval and instance eval class eval and instance eval
    1
    require 'pry'
    2
    
                  
    3
    class Person end
    4
    
                  
    5
    # this goes on an instance of a class
  2. ruby yield with block given ruby yield with block given
    1
    require 'pry'
    2
    
                  
    3
    # a simple method with args
    4
    def save(x)
    5
      puts "#{x} example"
  3. Upsert Through Prepared Statements A... Upsert Through Prepared Statements Active Record (Conflict Strategy)
    1
    # Reference for Next Time
    2
    
                  
    3
    
                  
    4
    # SQL: INSERT <..> ON CONFLICT(column_names_with_conflict,..) DO UPDATE SET <..> WHERE <..>
    5
    # Postgres does binding on $1 (format $number) using the params[non zero index]
  4. savant-quorum savant-quorum Public

    TypeScript