See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| # Documentation: https://shopify.dev/docs/apps/build/online-store/theme-app-extensions/configuration#detecting-app-blocks-and-app-embed-blocks | |
| module ShopifyApiWrapper | |
| class Theme | |
| class << self | |
| def app_embed_activated?(session:, theme_app_extension_id:) | |
| new(session: session) | |
| .app_embed_activated?(theme_app_extension_id: theme_app_extension_id) | |
| end | |
| end |
| org_id = 'your_org_id' | |
| access_token = 'your_partner_api_access_token' | |
| api_version = 'shopify_api_version' # example: '2024-01' | |
| app_id = "gid://partners/App/your_app_id" | |
| occurred_at_min = 'specific_time' # example: '2024-01-02T23:15:27.000000Z' | |
| uri = URI("https://partners.shopify.com/#{org_id}/api/#{api_version}/graphql.json") | |
| request = Net::HTTP::Post.new(uri) | |
| request['Content-Type'] = 'application/json' |
| import { | |
| isShopifyEmbedded, | |
| isMobile, | |
| isShopifyMobile, | |
| isShopifyPOS | |
| } from '@shopify/app-bridge/utilities'; | |
| const onShopifyEmbedded = isShopifyEmbedded(); | |
| const onMobile = isMobile(); | |
| const onShopifyMobile = isShopifyMobile(); |
| [ | |
| { | |
| "label": "(UTC-12:00) Etc/GMT+12", | |
| "rails_timezone": "International Date Line West", | |
| "tzinfo_identifier": "Etc/GMT+12" | |
| }, | |
| { | |
| "label": "(UTC-11:00) Pacific/Pago_Pago", | |
| "rails_timezone": "American Samoa", | |
| "tzinfo_identifier": "Pacific/Pago_Pago" |
| class Callable < Module | |
| def self.[](method) | |
| new(method) | |
| end | |
| def initialize(method) | |
| @method = method | |
| end | |
| def included(base) |
| import { createStore, applyMiddleware, compose } from "redux"; | |
| import rootReducer from "../reducers/index"; | |
| import { forbiddenWordsMiddleware } from "../middleware"; | |
| const storeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; | |
| const store = createStore( | |
| rootReducer, | |
| storeEnhancers(applyMiddleware(forbiddenWordsMiddleware)) | |
| ); |
| HTTP status code symbols for Rails | |
| Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
| Status Code Symbol | |
| 1xx Informational | |
| 100 :continue | |
| 101 :switching_protocols | |
| 102 :processing |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |