Skip to content
View razvan-pavel's full-sized avatar
🤓
https://gist.github.com/razvan-pavel
🤓
https://gist.github.com/razvan-pavel
  • EPAM Systems
  • Romania
  • 04:42 (UTC +03:00)

Block or report razvan-pavel

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.

Content in all repositories owned by your account will be closed.
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
razvan-pavel/README.md

尺乙ㄖ几乇 my personal space for experiments and cool stuff

GitHub followers Linkedin network

Github stats Top Langs

Pinned Loading

  1. Generate activeadmin templates rake ... Generate activeadmin templates rake task for your rails application
    1
    # Generate activeadmin templates rake task for your rails application
    2
    # IMPORTANT!!! It will overwrite your current file and should be used ONLY for newly generated files(or create a backup before running this script)
    3
    # Because this will try create a fresh file every time, you can use this rake instead of "rails g active_admin:resource YourClass"
    4
    
                  
    5
    # rake generate_admin_permit_params[User]
  2. If you are truly desperate to see wh... If you are truly desperate to see where your rails application stops and you have no logs to see what's going on
    1
    # If you are truly desperate to see where your rails application stops and you have no logs to see what's going on
    2
    # ALWAYS use this script with your "git status" empty, because you will have to do "git checkout ." after you found the bug
    3
    # It will add a line of print/debug/p with the name of the method for every method in your application so you can trace the place where your rails thread/server is stucked
    4
    
                  
    5
    Dir.glob("app/*/**") do |file|
  3. If expression checker If expression checker
    1
    # This will help you identify if two expressions are equivalent
    2
    #  usefull when you change an if condition and want to check if it works like before
    3
    
                  
    4
    # Example of use:
    5
    # $> expr_checker "(ana && are) || (ana && mere)", "ana && (are || mere)"                                                                                                                               
  4. funky_colors funky_colors Public

    JavaScript