NoMemoryError
ScriptError
LoadError
NotImplementedError
SyntaxError
SecurityError
SignalException
Interrupt
StandardError
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
function *foo(x) { | |
while (x < 4) { | |
x += yield x; | |
} | |
return x; | |
} | |
var bar = foo(3); | |
console.log( bar.next(1) ); | |
console.log( bar.next(1) ); | |
console.log( bar.next(1) ); |
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
setTimeout(() => console.log(1), 100) | |
setTimeout(() => console.log(2), 0) | |
Promise.resolve(42).then(() => { | |
console.log(3); | |
setTimeout(() => console.log(4), 50); | |
}) | |
.then(() => Promise.reject(new Error(22))) | |
.then(() => console.log(5)) | |
.catch((e) => console.log(6, e.message)) |
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 { | |
useCallback, | |
useState, | |
} from "react"; | |
import { | |
Button, | |
Checkbox, | |
Collapsible, | |
Icon, | |
Modal, |
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
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
# 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
{% for attribute in attributes %} | |
{% assign key = attribute | first | downcase | strip %} | |
{% if key == "your_attribute_name" %} | |
Your attribute name: {{ attribute | last }} | |
{% endif %} | |
{% endfor %} |
OlderNewer