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
| curl https://linuxsoft.cern.ch/cern/centos/7/updates/x86_64/Packages/Packages/kernel-devel-3.10.0-1127.el7.x86_64.rpm -o kernel.rpm |
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
| <template id="interactable-iframe-media"> | |
| <a-entity | |
| class="interactable" | |
| is-remote-hover-target | |
| hoverable-visuals | |
| tags="isHandCollisionTarget: true; offersHandConstraint: true; offersRemoteConstraint: true; inspectable: true;" | |
| body-helper="type: dynamic; mass: 1; collisionFilterGroup: 1; collisionFilterMask: 31;" | |
| matrix-auto-update | |
| shape-helper="type: box" | |
| set-unowned-body-kinematic |
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
| "use strict"; | |
| const axios = require("axios"); | |
| const jwt = require("jsonwebtoken"); | |
| function makeid(length) { | |
| var result = ""; | |
| var characters = | |
| "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
| var charactersLength = characters.length; | |
| for (var i = 0; i < length; i++) { | |
| result += characters.charAt(Math.floor(Math.random() * charactersLength)); |
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
| <template> | |
| <div> | |
| <v-row class="mb-2" v-if="refreshRepo" | |
| ><v-btn @click="refreshRepo">Refresh Repo List</v-btn></v-row | |
| > | |
| <v-row> | |
| <v-card | |
| width="400" | |
| class="mx-2 my-2" | |
| :key="index" |
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
| ... | |
| paypal_client_id=<paypal client id> | |
| paypal_client_secret=<paypal client secret> | |
| redirect_uri_paypal=<paypal redirect uri> | |
| save_paypal_url=<save paypal url> | |
| get_paypal_url=<get paypal url> |
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
| paypal_client_id=<your paypal client id> | |
| paypal_client_secret=<your paypal client secret> |
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
| "use strict"; | |
| const axios = require("axios"); | |
| const jwt = require("jsonwebtoken"); | |
| const formUrlEncoded = (x) => | |
| Object.keys(x).reduce((p, c) => p + `&${c}=${encodeURIComponent(x[c])}`, ""); | |
| const authorize_paypal = async function (params) { | |
| if (params.code) { | |
| const { access_token } = await authenticate({ params }); | |
| const { emails } = await getEmail({ access_token }); | |
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
| ... | |
| paypal-auth: | |
| handler: paypal.authorize_paypal | |
| annotations: | |
| web-export: true | |
| parameters: | |
| paypal_client_id: ${env:paypal_client_id} | |
| paypal_client_secret: ${env:paypal_client_secret} | |
| frontend_url: ${env:frontend_url} |
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
| <template> | |
| ... | |
| <DashboardInfo :username="username" :profilePhoto="profilePhoto" :paypalToken="paypalToken"/> | |
| ... | |
| </template> | |
| <script lang=ts> | |
| ... | |
| public paypalToken: boolean = false | |
| ... | |
| </script> |
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
| ... | |
| <v-row justify="space-between"> | |
| <v-col><v-btn color="green" v-if="!paypalToken">CONNECT PAYPAL</v-btn></v-col> | |
| <v-col class="font-weight-bold text-h5" v-if="paypalToken">{{paypalBalance}}</v-col> | |
| <v-col v-if="paypalToken"><v-btn color="green">withdraw</v-btn></v-col> | |
| </v-row> | |
| ... | |
| <script lang="ts"> | |
| ... | |
| @Prop({ required: false }) readonly paypalBalance!: string |