Skip to content

Instantly share code, notes, and snippets.

View mattmcegg's full-sized avatar
🎯
Focusing

Matt McElligott mattmcegg

🎯
Focusing
View GitHub Profile
@mitchellhuang
mitchellhuang / checkout.js
Created February 24, 2018 06:40
Stripe Elements Next.js (works with SSR)
import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { compose } from 'react-apollo';
import cookies from 'next-cookies';
import jsCookie from 'js-cookie';
import Script from 'react-load-script';
import { StripeProvider, Elements } from 'react-stripe-elements';
import Main from '../layouts/Main';
import withData from '../lib/withData';
import { viewerGraphql } from '../apollo/queries/viewer';
@dgrebb
dgrebb / AutoHotKey for a Mac User with an Apple keyboard on Windows.ahk
Last active September 18, 2023 18:20 — forked from chrisfcarroll/AutoHotKey for a Mac User with PC keyboard on Windows.ahk
AutoHotKey script for they who, being Mac Users with an Apple keyboard, yet still insist on using Windows. Also some arrange-windows-on-a-big-screen keys . Takes a similar approach as Parallels to keyboard mapping: rather than a wholesale swap of Cmd <-> Ctrl, instead duplicate favourite ctrl-key shortcuts to the Cmd key. For the big screen: som…
#InstallKeybdHook
; Language: English
; https://gist.github.com/chrisfcarroll/dddf32fea1f29e75f564
;
; Uses unicode. Save this file as utf-8 with BOM.
; Else it shall not work.
;
#NoEnv ; Recommended
;SendMode Input ; Recommended