This file contains 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
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' |
This file contains 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
import { | |
isShopifyEmbedded, | |
isMobile, | |
isShopifyMobile, | |
isShopifyPOS | |
} from '@shopify/app-bridge/utilities'; | |
const onShopifyEmbedded = isShopifyEmbedded(); | |
const onMobile = isMobile(); | |
const onShopifyMobile = isShopifyMobile(); |
This file contains 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
[ | |
{ | |
"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" |
This file contains 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
class Callable < Module | |
def self.[](method) | |
new(method) | |
end | |
def initialize(method) | |
@method = method | |
end | |
def included(base) |
This file contains 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
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)) | |
); |
This file contains 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
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: |
NewerOlder