ngrok allows you to expose a web server running on your local machine to the internet.
We're hiring Backend Engineers who will be working on Ruby on Rails API apps. But sometimes also work on non-RoR app such as Sinatra or pure Ruby scripts. The developer will be working closely with me.
- Build RESTful APIs to support our front end team
- Take care of error handling and fixing real bugs on production
- Take ownership of the system health, monitoring and performance
API request
{"order": {"name": "Y977989-1", "tags": "braze_block", "email": "yalahgilly@gmail.com", "currency": "AUD", "tax_lines": [{"rate": 0.1, "price": 2.27, "title": "GST"}], "total_tax": 2.27, "line_items": [{"id": 13851852701830, "sku": "21071501919", "name": "Rambler® 10 oz (296 ml) Tumbler - Power Pink", "grams": 300, "price": "25.00", "title": "Rambler® 10 oz (296 ml) Tumbler", "duties": [], "vendor": "YETI", "taxable": true, "quantity": 1, "gift_card": false, "price_set": {"shop_money": {"amount": "25.00", "currency_code": "AUD"}, "presentment_money": {"amount": "25.00", "currency_code": "AUD"}}, "product_id": 5137824678022, "properties": [], "variant_id": 40236113854598, "pre_tax_price": "22.73", "variant_title": "Power Pink", "product_exists": true, "total_discount": "0.00", "current_quantity": 1, "pre_tax_price_set": {"shop_money": {"amount": "22.73", "currency_code": "AUD"}, "presentment_money": {"amount": "22.73", "currency_code": "AUD"}},
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
const regionNames = new Intl.DisplayNames( | |
['en'], {type: 'region'} | |
); | |
console.log(regionNames.of('US')); // 👉️ "United States" | |
console.log(regionNames.of('GB')); // 👉️ "United kingdom" | |
console.log(regionNames.of('DE')); // 👉️ "Germany" | |
console.log(regionNames.of('AU')); // 👉️ "Australia" |
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
module AppProxyVerification | |
extend ActiveSupport::Concern | |
included do | |
skip_before_action :verify_authenticity_token, raise: false | |
before_action :verify_request | |
end | |
private |
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
{% for attribute in attributes %} | |
{% assign key = attribute | first | downcase | strip %} | |
{% if key == "your_attribute_name" %} | |
Your attribute name: {{ attribute | last }} | |
{% endif %} | |
{% endfor %} |
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
# frozen_string_literal: true | |
require "bundler/inline" | |
gemfile(true) do | |
source "https://rubygems.org" | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
gem "rails" |
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(); |
NewerOlder