Skip to content

Instantly share code, notes, and snippets.

View mollerjorge's full-sized avatar

Jorge Moller mollerjorge

  • Montevideo, Uruguay
View GitHub Profile
<?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>
import { gql, useMutation, useQuery } from "@apollo/client";
import {
Badge,
BlockStack,
Button,
InlineStack,
Page,
Spinner,
} from "@shopify/polaris";
import { useState } from "react";
import React from 'react'
const ContactUs = () => {
return (
<div>
This is a public route!
</div>
)
}
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 = []
var publisher = {
subscribers: {
any: [], // event type: subscriber
},
subscribe: function(fn, type) {
type = type || 'any';
if (typeof this.subscribers[type] === 'undefined') {
this.subscribers[type] = [];
}
debugger;
function Player(name) {
this.points = 0;
this.name = name;
}
Player.prototype.play = function() {
this.points += 1;
mediator.played();
}
var videos = {
getInfo = function(id) {
if (id) {
proxy.makeRequest([id]).then(
(res) => res.data.info,
(err) =>
throw new Error(err.message)
)
}
}
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();
}
var validator = {
// current configuration
// field name => validation type
config: {},
// different types of validations
types: {},
// error messages to display to the user
function QueueAsTwoStacks() {
this._stackIn = new Stack();
this._stackOut = new Stack();
}
QueueAsTwoStacks.prototype.enqueue = function(val) {
return this._stackIn.push(val);
}
QueueAsTwoStacks.prototype.dequeue = function() {