- Press CTRL-H ( ⌥⌘F on Mac ).
- Press ALT-R ( ⌥⌘R on Mac ).
- Type
_([a-zA-Z]). - Press TAB and type
$1. - Press ALT-ENTER ( ⌥ENTER on Mac ).
- Press F1 and type
upper, then press ENTER. - Press CTRL-ALT-ENTER ( ⌥ENTER on Mac ).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const axios = require('axios') | |
| /* ... */ | |
| const params = new URLSearchParams() | |
| params.append('name', 'Akexorcist') | |
| params.append('age', '28') | |
| params.append('position', 'Android Developer') | |
| params.append('description', 'birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/') | |
| params.append('awesome', true) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <Page class="page"> | |
| <ActionBar class="action-bar" title="Miyha"> | |
| <NavigationButton text="Menu" icon="res://ic_list_black_24dp" @tap="toggleDrawer" /> | |
| <StackLayout orientation="horizontal"> | |
| <Image src="res://icon" width="40" height="40" verticalAlignment="center" /> | |
| <Label text="iyha" fontSize="24" verticalAlignment="center" /> | |
| </StackLayout> | |
| </ActionBar> | |
| <SideDrawer> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Use Case - Use Devise Confirmable module to confirm newly added organization(org) using email(association) | |
| We want Three things to work - | |
| Use confirmable - send_confirmation_instructions to send email when new org is added | |
| Define Routes - organization_confirmation_url, so that user can use this route to confirm the org | |
| Add confirmable columns inside existing organizations table, update token,timestamps on db | |
| ====== HERE WE START ========= | |
| - `organization.rb` | |
| has_one :contact_detail ##contains email |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| module Storage | |
| class RemoteFileRenamer < ApplicationService | |
| attr_reader :file_blob, :new_name, :file | |
| # @param file [ActiveStorage::File] | |
| # @param new_name [String] | |
| # @param variation [Symbol] Sample: :thumbnail | |
| def initialize(file, new_name, variation = nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| /** | |
| * This is a sample | |
| * How to use Enum to create a custom exception cases | |
| * PHP 8.1^ | |
| */ |
OlderNewer