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 } from '@apollo/client'; | |
| import * as MENUS from '../constants/menus'; | |
| import { BlogInfoFragment } from '../fragments/GeneralSettings'; | |
| import { | |
| Header, | |
| Footer, | |
| Main, | |
| Container, | |
| EntryHeader, | |
| NavigationMenu, |
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 { getNextStaticProps } from '@faustjs/next'; | |
| import React from 'react'; | |
| import { client } from 'client'; | |
| import { getArrayFields, getFields, prepass } from 'gqty'; | |
| import { FaArrowRight } from 'react-icons/fa'; | |
| import { | |
| Header, | |
| Footer, | |
| EntryHeader, | |
| Main, |
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
| // Lives at pages/[productSlug]/index.js | |
| import { getNextStaticProps } from '@faustjs/next'; | |
| import { client } from 'client'; | |
| import { Footer, Header, EntryHeader, Main, SEO } from 'components'; | |
| import { useRouter } from 'next/router'; | |
| import { pageTitle, is404Cpt } from 'utils'; | |
| export function ProductComponent() { | |
| const { useQuery } = client; |
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 CanvasLMSClient(baseURL, accessToken) { | |
| this.baseURL = baseURL; | |
| this.accessToken = accessToken | |
| this.getAllResources = function(resourceUrl, nextLink = null, resources = [] ) { | |
| const url = nextLink ? nextLink + '&access_token=' + this.accessToken : resourceUrl; | |
| const params = { | |
| method: 'get', | |
| muteHttpExceptions: true | |
| } | |
| const response = UrlFetchApp.fetch(url, params ) |
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 GumroadLicenseValidator = /** @class */ (function () { | |
| function GumroadLicenseValidator() { | |
| } | |
| GumroadLicenseValidator.isLicenseValid = function () { | |
| var licenseDetails = GumroadLicenseValidator.getLicenseDetails(); | |
| if (licenseDetails) { | |
| var gumroadResponse = JSON.parse(licenseDetails); | |
| if (gumroadResponse.success === true | |
| && gumroadResponse.refunded === false |
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
| <?php | |
| /* | |
| Template Name: Homepage | |
| @name Homepage Template | |
| @since 2.0.0 | |
| @author Pavel Richter <[email protected]> | |
| @copyright Copyright (c) 2014, Grand Pixels |
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
| #!/usr/bin/env python | |
| # Written by Limor "Ladyada" Fried for Adafruit Industries, (c) 2015 | |
| # This code is released into the public domain | |
| import time | |
| import os | |
| import RPi.GPIO as GPIO | |
| import curses |
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 sendEmail(e){ | |
| var studentName = e.values[2]; | |
| var advisorName = e.values[1]; | |
| var studentEmail = e.values[4]; | |
| var class = e.values[8]; | |
| var email = 'Hi, ' + studentName + | |
| '\nWe have requested an override into ' + class | |
| + ' on your behalf. We will contact you once a decision has been reached.\n Best,\n ' + 'Advising Staff\nSchool of World Studies Office of Advising\nVirginia Commonwealth University\n817 West Franklin Street, Suite 221\nRichmond, VA 23284-2021'; |
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 myFunction() { | |
| //Get a particular label used in Gmail | |
| var label = GmailApp.getUserLabelByName('wordpress'); | |
| //Get threads within tagged with this label | |
| var threads = label.getThreads(); | |
| //Loop through threads and get messages |
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 spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
| var USERS_TABLE = spreadsheet.getSheets()[0]; | |
| var IDEAS_TABLE = spreadsheet.getSheets()[1]; | |
| var VOTES_TABLE = spreadsheet.getSheets()[2]; | |
| function registerUser(user){ | |
| var data = getTableData(USERS_TABLE); | |
NewerOlder