For faster connection speed and more flexibility.
- Start Xcode in command line by running this in commandline
/Applications/Xcode.app/Contents/MacOS/Xcode - Start downloading of the simulator
- Cancel it. YES CANCEL IT!
- You will get a message like this:
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
For faster connection speed and more flexibility.
/Applications/Xcode.app/Contents/MacOS/Xcode| import { ApolloServer, gql } from 'apollo-server-micro'; | |
| const typeDefs = gql` | |
| type Query { | |
| sayHello: String | |
| } | |
| `; | |
| const resolvers = { | |
| Query: { |
| // get an array of all the keys on the window | |
| const dirty = Object.keys(window); | |
| // Then create an iframe set to nothing | |
| const iframe = document.createElement('iframe'); | |
| iframe.src = ''; | |
| // put it into the DOM | |
| document.body.append(iframe); |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| /** | |
| * The Anatomy of a Remix Route | |
| */ | |
| import { parseFormBody, json, redirect } from "@remix-run/data"; | |
| import { | |
| Form, | |
| useRouteData, | |
| usePendingFormSubmit, | |
| preload, | |
| } from "@remix-run/react"; |
| import ReactDOMServer from "react-dom/server"; | |
| import type { EntryContext } from "@remix-run/core"; | |
| import Remix from "@remix-run/react/server"; | |
| import { renderToString } from "react-dom/server"; | |
| import { ServerStyleSheet } from "styled-components"; | |
| import StylesContext from "./stylesContext"; | |
| export default function handleRequest( | |
| request: Request, |
| { | |
| "name": "remove-ts", | |
| "version": "1.0.0", | |
| "description": "I use this to automatically fix feedback links in my workshops", | |
| "bin": "./remove-ts.js", | |
| "dependencies": { | |
| "@babel/core": "7.13.8", | |
| "@babel/preset-typescript": "7.13.0", | |
| "glob": "7.1.6" | |
| } |
| import type { | |
| VercelRequest as IVercelRequest, | |
| VercelRequestBody, | |
| VercelRequestCookies, | |
| VercelRequestQuery | |
| } from '@vercel/node' | |
| import isUndefined from 'lodash/isUndefined' | |
| import omit from 'lodash/omit' | |
| import type { MockRequestOptions } from 'mock-http' | |
| import { Request } from 'mock-http' |
| import type { | |
| ActionFunction, | |
| LinksFunction, | |
| LoaderFunction, | |
| MetaFunction | |
| } from "@remix-run/react"; | |
| import { | |
| Meta, | |
| Links, | |
| Scripts, |