This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>name</key> | |
| <string>George Theme</string> | |
| <key>settings</key> | |
| <array> | |
| <dict> | |
| <key>settings</key> |
This file contains hidden or 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 { gql, useMutation, useQuery } from "@apollo/client"; | |
| import { | |
| Badge, | |
| BlockStack, | |
| Button, | |
| InlineStack, | |
| Page, | |
| Spinner, | |
| } from "@shopify/polaris"; | |
| import { useState } from "react"; |
This file contains hidden or 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 React from 'react' | |
| const ContactUs = () => { | |
| return ( | |
| <div> | |
| This is a public route! | |
| </div> | |
| ) | |
| } |
This file contains hidden or 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 '../styles/globals.css' | |
| import { ClerkProvider, SignedIn, SignedOut } from '@clerk/clerk-react' | |
| import { useRouter } from 'next/router' | |
| import { useEffect } from 'react' | |
| const clerkFrontendApi = process.env.NEXT_PUBLIC_CLERK_FRONTEND_API | |
| const clerkSignInURL = process.env.NEXT_PUBLIC_CLERK_SIGN_IN | |
| const publicPages = [] |
This file contains hidden or 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
| var publisher = { | |
| subscribers: { | |
| any: [], // event type: subscriber | |
| }, | |
| subscribe: function(fn, type) { | |
| type = type || 'any'; | |
| if (typeof this.subscribers[type] === 'undefined') { | |
| this.subscribers[type] = []; | |
| } | |
| debugger; |
This file contains hidden or 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 Player(name) { | |
| this.points = 0; | |
| this.name = name; | |
| } | |
| Player.prototype.play = function() { | |
| this.points += 1; | |
| mediator.played(); | |
| } |
This file contains hidden or 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
| var videos = { | |
| getInfo = function(id) { | |
| if (id) { | |
| proxy.makeRequest([id]).then( | |
| (res) => res.data.info, | |
| (err) => | |
| throw new Error(err.message) | |
| ) | |
| } | |
| } |
This file contains hidden or 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
| var oldOrder = { | |
| cart: ['macbookPro', 'magic keyboard', 'magic trackpad'], | |
| cartTotal: 2200, | |
| tax: 40, | |
| shipping: 'Montevideo, Uruguay', | |
| getItemsFromCart: function() { | |
| // before: return this.cart; | |
| // after facade | |
| return facadeApi.getItemsFromCart(); | |
| } |
This file contains hidden or 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
| var validator = { | |
| // current configuration | |
| // field name => validation type | |
| config: {}, | |
| // different types of validations | |
| types: {}, | |
| // error messages to display to the user |
This file contains hidden or 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 QueueAsTwoStacks() { | |
| this._stackIn = new Stack(); | |
| this._stackOut = new Stack(); | |
| } | |
| QueueAsTwoStacks.prototype.enqueue = function(val) { | |
| return this._stackIn.push(val); | |
| } | |
| QueueAsTwoStacks.prototype.dequeue = function() { |
NewerOlder