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