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
/** WARNING - USE AT OWN RISK */ | |
/** IT IS AGAINST APPLE'S POLICY TO USE SF PRO FOR ANYTHING OTHER THAN iOS/tvOS/macOS/watchOS DESIGN & DEVELOPMENT */ | |
/** https://sf.abarba.me/LICENSE.pdf */ | |
/** 1. Copy/import this file into your main css/scss file */ | |
/** 2. Change css font-family: to "SF Text", "SF Display" or "SF Mono" */ | |
/** 3. Apply font-weight or italic to html elements */ | |
/** THANK YOU */ | |
/** I host these fonts on Cloudfront with SSL in all AWS regions for the best performance and reliability */ |
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 withData from '@/lib/withData' | |
import { ApolloClient } from 'apollo-boost' | |
import App, { AppProps, Container } from 'next/app' | |
import { ApolloProvider } from 'react-apollo' | |
export default withData( | |
class extends App<MyAppProps> { | |
public static async getInitialProps({ Component, ...ctx }) { | |
let pageProps = {} |
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
<?php | |
/** | |
* Simple file to help add manual entries to a gravity form, so we don't have to deal w/ GFs output. | |
*/ | |
require_once $_SERVER['DOCUMENT_ROOT'] . '/wp/wp-load.php'; | |
$data = $_REQUEST; | |
// ----------------------------------------------- |
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
{"lastUpload":"2020-09-25T00:11:19.988Z","extensionVersion":"v3.4.3"} |
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
const log = new Proxy({}, { | |
get: (_, colour) => function() { | |
console.log(`%c ${[].slice.call(arguments).join(' ')}`, `color: ${colour}`) | |
} | |
}) | |
// example | |
log.tomato('I am tomato') | |
log.chocolate('I am chocolate') | |
log.cornflowerblue('I am cornflowerblue') |
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
// This is to list all events on the page: | |
[].slice.call(document.querySelectorAll('*')) | |
.map(el => ({ el, listeners: Object.entries(getEventListeners(el)) })) | |
.filter(el => el.listeners.length) | |
// Use with a mutationobserver to confirm that events are detaching: | |
const _getEventListeners = getEventListeners | |
const getAll = () => [].slice.call(document.querySelectorAll('*')) | |
.map(el => ({ el, listeners: Object.entries(_getEventListeners(el)) })) | |
.filter(el => el.listeners.length) |
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
[Rainmeter] | |
Update=1000 | |
AccurateText=1 | |
DynamicWindowSize=1 | |
[Metadata] | |
Name=ForexFactoryCalendar | |
Author=Talasan Nicholson | |
Version=0.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
import { spawn } from 'child_process' | |
import * as express from 'express' | |
import * as LRU from 'lru-cache' | |
const app = express() | |
const cache = LRU({ | |
max: 152, | |
maxAge: 36e2 | |
}) |
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 { ApolloServer } from 'apollo-server-express' | |
import * as express from 'express' | |
import { IResolvers } from 'graphql-tools' | |
import * as LRU from 'lru-cache' | |
import typeDefs, { Context } from './types' | |
const router = express.Router() | |
const resolvers: IResolvers<{}, Context> = { |
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 * as compression from 'compression' | |
import * as express from 'express' | |
import { RequestHandlerParams } from 'express-serve-static-core' | |
import * as helmet from 'helmet' | |
import * as LRU from 'lru-cache' | |
import * as morgan from 'morgan' | |
import * as next from 'next' | |
import * as path from 'path' | |
const dev = process.env.NODE_ENV !== 'production' |
NewerOlder